aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2019-10-03 12:24:26 -0700
committerGuy Harris <guy@alum.mit.edu>2019-10-03 20:56:07 +0000
commit750ffac7b608838d61082826b99a3885919cfc24 (patch)
treebd677a658a416fce73d179fad031873ccf683fe2 /wsutil
parentdb68ece98074436f45622b12e2e6a8dfa5cd3bb1 (diff)
Win32: Fix a return value check.
CreateNamedPipe returns INVALID_HANDLE_VALUE on failure. Change-Id: I79ad5144e084520db8197b69c4ad34431d183009 Reviewed-on: https://code.wireshark.org/review/34704 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/ws_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsutil/ws_pipe.c b/wsutil/ws_pipe.c
index f8455a8d2c..0a7d26f231 100644
--- a/wsutil/ws_pipe.c
+++ b/wsutil/ws_pipe.c
@@ -135,7 +135,7 @@ ws_pipe_create_overlapped_read(HANDLE *read_pipe_handle, HANDLE *write_pipe_hand
PIPE_TYPE_BYTE | PIPE_WAIT, 1,
suggested_buffer_size, suggested_buffer_size,
0, sa);
- if (!read_pipe)
+ if (INVALID_HANDLE_VALUE == read_pipe)
{
g_free(wname);
return FALSE;