[SHELL32] Fix a careless mistake of ShellExecCmdLine (#737)

CORE-14886
This commit is contained in:
Katayama Hirofumi MZ 2018-08-10 20:25:50 +09:00 committed by Hermès BÉLUSCA - MAÏTO
parent 83891d2843
commit db13b422b3
2 changed files with 1 additions and 2 deletions

View 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) ||

View 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);