Author: hbelusca Date: Sun Dec 23 23:22:10 2012 New Revision: 57987
URL: http://svn.reactos.org/svn/reactos?rev=57987&view=rev Log: [SYSSETUP] I forgot that previously.
Modified: trunk/reactos/dll/win32/syssetup/wizard.c
Modified: trunk/reactos/dll/win32/syssetup/wizard.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/wizard.c... ============================================================================== --- trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] Sun Dec 23 23:22:10 2012 @@ -55,10 +55,11 @@ PROCESS_INFORMATION ProcInfo; MSG msg; DWORD ret; - STARTUPINFOW si = {0}; + STARTUPINFOW si; WCHAR InstallName[] = L"vmwinst.exe";
- si.cb = sizeof(STARTUPINFO); + ZeroMemory(&si, sizeof(si)); + si.cb = sizeof(si);
if(CreateProcessW(NULL, InstallName, NULL, NULL, TRUE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &ProcInfo)) @@ -795,7 +796,7 @@ WCHAR CmdLine[MAX_PATH] = L"rundll32.exe shell32.dll,Control_RunDLL ";
ZeroMemory(&StartupInfo, sizeof(StartupInfo)); - StartupInfo.cb = sizeof(STARTUPINFOW); + StartupInfo.cb = sizeof(StartupInfo);
ASSERT(_countof(CmdLine) > wcslen(CmdLine) + wcslen(pwszCPLParameters)); wcscat(CmdLine, pwszCPLParameters);