[wing/wip/nacho/poll-stream] Use invalid handle value
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [wing/wip/nacho/poll-stream] Use invalid handle value
- Date: Wed, 28 Nov 2018 15:20:33 +0000 (UTC)
commit 1d8ed10aedd63779b10b176c289c75f5e7d189c9
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Wed Nov 28 16:18:48 2018 +0100
Use invalid handle value
wing/winginputstream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/wing/winginputstream.c b/wing/winginputstream.c
index 8920c8c..a16123c 100644
--- a/wing/winginputstream.c
+++ b/wing/winginputstream.c
@@ -273,7 +273,7 @@ wing_input_stream_init (WingInputStream *wing_stream)
wing_stream->priv->handle = NULL;
wing_stream->priv->close_handle = TRUE;
wing_stream->priv->overlap.hEvent = CreateEvent (NULL, TRUE, FALSE, NULL);
- g_return_val_if_fail (wing_stream->priv->overlap.hEvent != NULL, -1);
+ g_return_val_if_fail (wing_stream->priv->overlap.hEvent != INVALID_HANDLE_VALUE, -1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]