Win32: Make sure we zero out PROCESS_INFORMATION.
Make sure we zero our PROCESS_INFORMATION struct before passing it to CreateProcess. Change-Id: Ib42320965bb7b2d37a9fc106d78ace02153e48d2 Reviewed-on: https://code.wireshark.org/review/15154 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
parent
91b154236b
commit
455c30a54b
|
@ -645,9 +645,10 @@ sync_pipe_start(capture_options *capture_opts, capture_session *cap_session, inf
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/* init STARTUPINFO */
|
||||
/* init STARTUPINFO & PROCESS_INFORMATION */
|
||||
memset(&si, 0, sizeof(si));
|
||||
si.cb = sizeof(si);
|
||||
memset(&pi, 0, sizeof(pi));
|
||||
#ifdef DEBUG_CHILD
|
||||
si.dwFlags = STARTF_USESHOWWINDOW;
|
||||
si.wShowWindow = SW_SHOW;
|
||||
|
@ -916,9 +917,10 @@ sync_pipe_open_command(char** argv, int *data_read_fd,
|
|||
return -1;
|
||||
}
|
||||
|
||||
/* init STARTUPINFO */
|
||||
/* init STARTUPINFO & PROCESS_INFORMATION */
|
||||
memset(&si, 0, sizeof(si));
|
||||
si.cb = sizeof(si);
|
||||
memset(&pi, 0, sizeof(pi));
|
||||
#ifdef DEBUG_CHILD
|
||||
si.dwFlags = STARTF_USESHOWWINDOW;
|
||||
si.wShowWindow = SW_SHOW;
|
||||
|
|
Loading…
Reference in New Issue