Module: wine Branch: master Commit: 6384eb0aec73275b9ff2e838577de7d11573b4ac URL: http://source.winehq.org/git/wine.git/?a=commit;h=6384eb0aec73275b9ff2e83857...
Author: Vladimir Pankratov scriptkid@mail.ru Date: Tue Jun 30 20:43:41 2009 +0500
shell32: Fix RunFileDialog to close after starting apps.
---
dlls/shell32/dialogs.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/shell32/dialogs.c b/dlls/shell32/dialogs.c index ac6bf21..0d8dbac 100644 --- a/dlls/shell32/dialogs.c +++ b/dlls/shell32/dialogs.c @@ -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); } }