Possible bug

Feb 5, 2013 at 8:48 PM
No sure if this matters but I think the structures used in this code should be initialised to null before use, e.g.:

STARTUPINFO si;
PROCESS_INFORMATION pi;

ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
Feb 6, 2013 at 9:40 PM
After some investigation I realised this isn't correct.