Skip to content

Commit

Permalink
[w32process] Ensure process_handle is a legal value
Browse files Browse the repository at this point in the history
Fixes mono#6383
  • Loading branch information
luhenry committed Jan 8, 2018
1 parent 3b6c67d commit f0ec27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/metadata/w32process-unix.c
Expand Up @@ -2218,7 +2218,7 @@ ves_icall_System_Diagnostics_Process_ShellExecuteEx_internal (MonoW32ProcessStar
}
/* Shell exec should not return a process handle when it spawned a GUI thing, like a browser. */
mono_w32handle_close (process_info->process_handle);
process_info->process_handle = NULL;
process_info->process_handle = INVALID_HANDLE_VALUE;
}

done:
Expand Down

0 comments on commit f0ec27d

Please sign in to comment.