Vincent Povirk : shell32: Use ShellExecuteEx to create error dialogs for the run dialog.
Alexandre Julliard
julliard at winehq.org
Fri Dec 19 11:19:35 CST 2008
Module: wine
Branch: master
Commit: 7ef7d975e42d32834942c0ca9b10177e887229d3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7ef7d975e42d32834942c0ca9b10177e887229d3
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Thu Dec 18 14:30:21 2008 -0600
shell32: Use ShellExecuteEx to create error dialogs for the run dialog.
---
dlls/shell32/dialogs.c | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/dlls/shell32/dialogs.c b/dlls/shell32/dialogs.c
index a7f056a..ac6bf21 100644
--- a/dlls/shell32/dialogs.c
+++ b/dlls/shell32/dialogs.c
@@ -224,7 +224,6 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
sei.hwnd = hwnd;
sei.nShow = SW_SHOWNORMAL;
sei.lpFile = psz;
- sei.fMask = SEE_MASK_FLAG_NO_UI;
if (prfdp->lpstrDirectory)
sei.lpDirectory = prfdp->lpstrDirectory;
@@ -233,20 +232,6 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR
if (ShellExecuteExW( &sei ) < 33)
{
- char *pszSysMsg = NULL ;
- char szMsg[256];
- FormatMessageA (
- FORMAT_MESSAGE_ALLOCATE_BUFFER |
- FORMAT_MESSAGE_FROM_SYSTEM |
- FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL, GetLastError (),
- MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
- (LPSTR)&pszSysMsg, 0, NULL
- ) ;
- sprintf (szMsg, "Error: %s", pszSysMsg) ;
- LocalFree ((HLOCAL)pszSysMsg) ;
- MessageBoxA (hwnd, szMsg, "Nix", MB_OK | MB_ICONEXCLAMATION) ;
-
HeapFree(GetProcessHeap(), 0, psz);
HeapFree(GetProcessHeap(), 0, parent);
SendMessageA (htxt, CB_SETEDITSEL, 0, MAKELPARAM (0, -1)) ;
More information about the wine-cvs
mailing list