[wing/wip/nacho/poll-stream] rever patch about closing
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [wing/wip/nacho/poll-stream] rever patch about closing
- Date: Wed, 28 Nov 2018 15:50:43 +0000 (UTC)
commit 6755994e035e74e06657612032f01a9fa7a8aa38
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Wed Nov 28 16:47:20 2018 +0100
rever patch about closing
wing/winginputstream.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/wing/winginputstream.c b/wing/winginputstream.c
index 5b176b3..e92bdca 100644
--- a/wing/winginputstream.c
+++ b/wing/winginputstream.c
@@ -235,7 +235,7 @@ wing_input_stream_close (GInputStream *stream,
wing_stream = WING_INPUT_STREAM (stream);
priv = wing_input_stream_get_instance_private (wing_stream);
- if (priv->close_handle == INVALID_HANDLE_VALUE)
+ if (!priv->close_handle)
return TRUE;
res = CloseHandle (priv->handle);
@@ -252,8 +252,6 @@ wing_input_stream_close (GInputStream *stream,
return FALSE;
}
- priv->handle = INVALID_HANDLE_VALUE;
-
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]