From f143cc5f45dfbdcbd2e61f8995cfbf4766651e17 Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Sat, 22 Sep 2007 16:52:53 +0000 Subject: [PATCH] Call ShellExecute with NULL instead of "open", so the default action is used, when a file name does not support "open". (see http://msdn2.microsoft.com/en-us/library/ms647732.aspx) According to someone in the bug report, this is the behaviour used under Windows XP. See issue #1461 for more details. svn path=/trunk/; revision=29143 --- reactos/dll/win32/shell32/dialogs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/shell32/dialogs.c b/reactos/dll/win32/shell32/dialogs.c index 88c2e47cc73..d9aae7bbe83 100644 --- a/reactos/dll/win32/shell32/dialogs.c +++ b/reactos/dll/win32/shell32/dialogs.c @@ -145,7 +145,7 @@ INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar psz = HeapAlloc( GetProcessHeap(), 0, (ic + 2) ); GetWindowTextA (htxt, psz, ic + 1) ; - if (ShellExecuteA(NULL, "open", psz, NULL, NULL, SW_SHOWNORMAL) < (HINSTANCE)33) + if (ShellExecuteA(NULL, NULL, psz, NULL, NULL, SW_SHOWNORMAL) < (HINSTANCE)33) { char *pszSysMsg = NULL ; FormatMessageA (