shell32: Fix RunFileDialog to close after starting apps.

This commit is contained in:
Vladimir Pankratov 2009-06-30 20:43:41 +05:00 committed by Alexandre Julliard
parent 163914380e
commit 6384eb0aec

View file

@ -230,13 +230,13 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
else
sei.lpDirectory = parent = RunDlg_GetParentDir(sei.lpFile);
if (ShellExecuteExW( &sei ) < 33)
{
if (!ShellExecuteExW( &sei ))
{
HeapFree(GetProcessHeap(), 0, psz);
HeapFree(GetProcessHeap(), 0, parent);
SendMessageA (htxt, CB_SETEDITSEL, 0, MAKELPARAM (0, -1)) ;
return TRUE ;
}
}
/* FillList is still ANSI */
GetWindowTextA (htxt, (LPSTR)psz, ic + 1) ;
@ -244,7 +244,7 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
HeapFree(GetProcessHeap(), 0, psz);
HeapFree(GetProcessHeap(), 0, parent);
EndDialog (hwnd, 0) ;
EndDialog (hwnd, 0);
}
}