mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:15:41 +00:00
[SHELL32] Don't close Run dialog on execution failure (#7686)
CORE-19983
This commit is contained in:
parent
dddceeb10d
commit
6265add147
1 changed files with 2 additions and 5 deletions
|
@ -583,7 +583,7 @@ static INT_PTR CALLBACK RunDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARA
|
|||
INT ic;
|
||||
WCHAR *psz, *pszExpanded, *parent = NULL;
|
||||
DWORD cchExpand;
|
||||
SHELLEXECUTEINFOW sei;
|
||||
SHELLEXECUTEINFOW sei = { sizeof(sei) };
|
||||
NMRUNFILEDLGW nmrfd;
|
||||
|
||||
ic = GetWindowTextLengthW(htxt);
|
||||
|
@ -593,9 +593,6 @@ static INT_PTR CALLBACK RunDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARA
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
ZeroMemory(&sei, sizeof(sei));
|
||||
sei.cbSize = sizeof(sei);
|
||||
|
||||
/*
|
||||
* Allocate a new MRU entry, we need to add two characters
|
||||
* for the terminating "\\1" part, then the NULL character.
|
||||
|
@ -694,7 +691,7 @@ static INT_PTR CALLBACK RunDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARA
|
|||
EndDialog(hwnd, IDOK);
|
||||
break;
|
||||
}
|
||||
else if (SUCCEEDED(ShellExecuteExW(&sei)))
|
||||
else if (ShellExecuteExW(&sei))
|
||||
{
|
||||
/* Call GetWindowText again in case the contents of the edit box have changed. */
|
||||
GetWindowTextW(htxt, psz, ic + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue