Commit 6384eb0a authored by Vladimir Pankratov's avatar Vladimir Pankratov Committed by Alexandre Julliard

shell32: Fix RunFileDialog to close after starting apps.

parent 16391438
...@@ -230,7 +230,7 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR ...@@ -230,7 +230,7 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
else else
sei.lpDirectory = parent = RunDlg_GetParentDir(sei.lpFile); sei.lpDirectory = parent = RunDlg_GetParentDir(sei.lpFile);
if (ShellExecuteExW( &sei ) < 33) if (!ShellExecuteExW( &sei ))
{ {
HeapFree(GetProcessHeap(), 0, psz); HeapFree(GetProcessHeap(), 0, psz);
HeapFree(GetProcessHeap(), 0, parent); HeapFree(GetProcessHeap(), 0, parent);
...@@ -244,7 +244,7 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR ...@@ -244,7 +244,7 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
HeapFree(GetProcessHeap(), 0, psz); HeapFree(GetProcessHeap(), 0, psz);
HeapFree(GetProcessHeap(), 0, parent); HeapFree(GetProcessHeap(), 0, parent);
EndDialog (hwnd, 0) ; EndDialog (hwnd, 0);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment