[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    shell32 patch
From:       "Jens Collin" <jens.collin () lakhei ! com>
Date:       2004-07-31 10:11:20
Message-ID: 004301c476e6$bcf51330$0201a8c0 () jezex
[Download RAW message or body]

Hi,

I've made a small change in shell32.dll to enable one to type a
myfile.txt from Start->Run dialog (for example).
I've simply replaced the call to CreateProcess with ShellExecute.
I've tested this change in reactos and it works nicely.
It won't really work since there is something wrong with ShellExecute
itself (or rather FindExecutable) but I've contacted Francois
(fgouget@free.fr) to get some help on this. 
Anyway, it partially adds a tiny function and it doesn't break anything.

Can someone commit this small patch for me please?

Thanks in advance,
Jens Collin

["dialogs.diff" (application/octet-stream)]

Index: dialogs.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/dialogs.c,v
retrieving revision 1.18
diff -u -p -r1.18 dialogs.c
--- dialogs.c	9 Jul 2004 22:51:19 -0000	1.18
+++ dialogs.c	31 Jul 2004 10:09:35 -0000
@@ -164,8 +164,7 @@ INT_PTR CALLBACK RunDlgProc (HWND hwnd, 
                         psz = malloc (ic + 2) ;
                         GetWindowTextA (htxt, psz, ic + 1) ;
 
-                        if (!CreateProcessA (NULL, psz, NULL, NULL, TRUE,
-                            NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi))
+						if ((ret = ShellExecuteA(NULL, _T("open"), psz, NULL, NULL, SW_SHOWNORMAL)) < 33)
                             {
                             char *pszSysMsg = NULL ;
                             FormatMessageA (


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic