[SYSSETUP]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 23 Dec 2012 23:22:10 +0000 (23:22 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 23 Dec 2012 23:22:10 +0000 (23:22 +0000)
I forgot that previously.

svn path=/trunk/; revision=57987

reactos/dll/win32/syssetup/wizard.c

index b53ce26..ea1b22c 100644 (file)
@@ -55,10 +55,11 @@ RunVMWInstall(HWND hWnd)
     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 @@ RunControlPanelApplet(HWND hwnd, PCWSTR pwszCPLParameters)
         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);