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>
This commit is contained in:
Gerald Combs 2019-10-03 12:24:26 -07:00 committed by Guy Harris
parent db68ece980
commit 750ffac7b6
1 changed files with 1 additions and 1 deletions

View File

@ -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;