mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fix bug #166 ('FileDialog returns empty string or error in run from the start menu').
svn path=/trunk/; revision=7809
This commit is contained in:
parent
593f004966
commit
74722e09f0
1 changed files with 7 additions and 6 deletions
|
@ -240,12 +240,13 @@ INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
|
|||
return TRUE ;
|
||||
}
|
||||
|
||||
ofnProc (&ofn) ;
|
||||
|
||||
SetFocus (GetDlgItem (hwnd, IDOK)) ;
|
||||
SetWindowTextA (GetDlgItem (hwnd, 12298), szFName) ;
|
||||
SendMessageA (GetDlgItem (hwnd, 12298), CB_SETEDITSEL, 0, MAKELPARAM (0, -1)) ;
|
||||
SetFocus (GetDlgItem (hwnd, IDOK)) ;
|
||||
if (ofnProc (&ofn))
|
||||
{
|
||||
SetFocus (GetDlgItem (hwnd, IDOK)) ;
|
||||
SetWindowTextA (GetDlgItem (hwnd, 12298), szFName) ;
|
||||
SendMessageA (GetDlgItem (hwnd, 12298), CB_SETEDITSEL, 0, MAKELPARAM (0, -1)) ;
|
||||
SetFocus (GetDlgItem (hwnd, IDOK)) ;
|
||||
}
|
||||
|
||||
FreeLibrary (hComdlg) ;
|
||||
|
||||
|
|
Loading…
Reference in a new issue