Author: gschneider
Date: Thu Apr 15 18:33:25 2010
New Revision: 46882
URL:
http://svn.reactos.org/svn/reactos?rev=46882&view=rev
Log:
[SHELL32]
- Use the default action when starting processes from the run dialog (r29143, lost due to
a sync)
- Control panels can be launched from run again
- Display localized error text as messagebox caption instead of "Nix"
See issue #4026 for more details.
Modified:
trunk/reactos/dll/win32/shell32/dialogs.c
Modified: trunk/reactos/dll/win32/shell32/dialogs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/dialogs.…
==============================================================================
--- trunk/reactos/dll/win32/shell32/dialogs.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/dialogs.c [iso-8859-1] Thu Apr 15 18:33:25 2010
@@ -344,7 +344,7 @@
else
pdir[3] = '\0';
}
- if (ShellExecuteA(NULL, "open", psz, NULL, pdir,
SW_SHOWNORMAL) < (HINSTANCE)33)
+ if (ShellExecuteA(NULL, NULL, psz, NULL, pdir, SW_SHOWNORMAL)
< (HINSTANCE)33)
{
char *pszSysMsg = NULL ;
FormatMessageA (
@@ -357,7 +357,7 @@
) ;
sprintf (szMsg, "Error: %s", pszSysMsg) ;
LocalFree ((HLOCAL)pszSysMsg) ;
- MessageBoxA (hwnd, szMsg, "Nix", MB_OK |
MB_ICONEXCLAMATION) ;
+ MessageBoxA (hwnd, szMsg, NULL, MB_OK | MB_ICONEXCLAMATION)
;
HeapFree(GetProcessHeap(), 0, psz);
HeapFree(GetProcessHeap(), 0, pdir);