shlexec: fix return value
Huw D M Davies
h.davies1 at physics.ox.ac.uk
Thu Apr 22 10:05:30 CDT 2004
This time with the correct Changelog.
Huw Davies <huw at codeweavers.com>
DdeClientTransaction returns zero on error
--
Huw Davies
huw at codeweavers.com
Index: dlls/shell32/shlexec.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shlexec.c,v
retrieving revision 1.44
diff -u -r1.44 shlexec.c
--- dlls/shell32/shlexec.c 13 Apr 2004 00:18:45 -0000 1.44
+++ dlls/shell32/shlexec.c 22 Apr 2004 14:34:38 -0000
@@ -801,7 +801,7 @@
TRACE("%s %s => %s\n", debugstr_w(exec), debugstr_w(lpFile), debugstr_w(res));
ret = (DdeClientTransaction((LPBYTE)res, (strlenW(res) + 1) * sizeof(WCHAR), hConv, 0L, 0,
- XTYP_EXECUTE, 10000, &tid) != DMLERR_NO_ERROR) ? 31 : 33;
+ XTYP_EXECUTE, 10000, &tid) == 0) ? 31 : 33;
DdeDisconnect(hConv);
error:
More information about the wine-patches
mailing list