shell32 patch 23 b

Martin Fuchs martin-fuchs at gmx.net
Sat Feb 28 15:12:32 CST 2004


Changelog:
set error code ERROR_DDE_FAIL if the DDE connection failed in ShellExecute()


Index: shlexec.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shlexec.c,v
retrieving revision 1.29
diff -u -p -d -r1.29 shlexec.c
--- shlexec.c	12 Feb 2004 20:04:09 -0000	1.29
+++ shlexec.c	28 Feb 2004 21:11:46 -0000
@@ -540,8 +540,9 @@ static unsigned dde_connect(WCHAR* key, 
         if (!hConv)
         {
             TRACE("Couldn't connect. ret=%d\n", ret);
-            ret = 30; /* whatever */
-            goto error;
+            DdeUninitialize(ddeInst);
+            SetLastError(ERROR_DDE_FAIL);
+            return ret = 30; /* whatever */
         }
         strcpyW(endkey, wIfexec);
         ifexeclen = sizeof(ifexec)/sizeof(WCHAR);





More information about the wine-patches mailing list