[SHELL32] Fix a careless mistake of ShellExecCmdLine (#737)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Fri, 10 Aug 2018 11:25:50 +0000 (20:25 +0900)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Fri, 10 Aug 2018 11:25:50 +0000 (13:25 +0200)
CORE-14886

dll/win32/shell32/shlexec.cpp
modules/rostests/apitests/shell32/ShellExecCmdLine.cpp

index 55b3d05..09ccfec 100644 (file)
@@ -2430,7 +2430,6 @@ HRESULT WINAPI ShellExecCmdLine(
             SearchPathW(pwszStartDir, szFile, wszCom, _countof(szFile2), szFile2, NULL))
         {
             StringCchCopyW(szFile, _countof(szFile), szFile2);
-            pchParams = NULL;
         }
         else if (SearchPathW(NULL, lpCommand, NULL, _countof(szFile2), szFile2, NULL) ||
                  SearchPathW(NULL, lpCommand, wszExe, _countof(szFile2), szFile2, NULL) ||
index c540321..44a22a5 100644 (file)
@@ -140,7 +140,6 @@ HRESULT WINAPI ShellExecCmdLine(
             SearchPathW(pwszStartDir, szFile, wszCom, _countof(szFile2), szFile2, NULL))
         {
             StringCchCopyW(szFile, _countof(szFile), szFile2);
-            pchParams = NULL;
         }
         else if (SearchPathW(NULL, lpCommand, NULL, _countof(szFile2), szFile2, NULL) ||
                  SearchPathW(NULL, lpCommand, wszExe, _countof(szFile2), szFile2, NULL) ||
@@ -415,6 +414,7 @@ static void DoEntry(const TEST_ENTRY *pEntry)
             {
                 bFound = TRUE;
                 SendMessage(hwnd, WM_CLOSE, 0, 0);
+                Sleep(RETRY_INTERVAL);
                 break;
             }
             Sleep(RETRY_INTERVAL);