mirror of
https://github.com/reactos/reactos.git
synced 2024-09-15 23:28:15 +00:00
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
This commit is contained in:
parent
7c48ada188
commit
f143cc5f45
|
@ -145,7 +145,7 @@ INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar
|
||||||
psz = HeapAlloc( GetProcessHeap(), 0, (ic + 2) );
|
psz = HeapAlloc( GetProcessHeap(), 0, (ic + 2) );
|
||||||
GetWindowTextA (htxt, psz, ic + 1) ;
|
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 ;
|
char *pszSysMsg = NULL ;
|
||||||
FormatMessageA (
|
FormatMessageA (
|
||||||
|
|
Loading…
Reference in a new issue