PATCH: comm patch
Marcus Meissner
marcus at jet.franken.de
Tue Dec 9 17:04:10 CST 2003
Hi,
This is from bug 1590.
Ciao, Marcus
Changelog:
Frank <f.gockel at t-online.de>
Fixed size check in GetCommConfig().
Index: dlls/kernel/comm.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/comm.c,v
retrieving revision 1.74
diff -u -r1.74 comm.c
--- dlls/kernel/comm.c 2 Dec 2003 04:19:56 -0000 1.74
+++ dlls/kernel/comm.c 9 Dec 2003 23:00:57 -0000
@@ -2071,10 +2071,9 @@
if(lpCommConfig == NULL)
return FALSE;
-
- r = *lpdwSize < sizeof(COMMCONFIG);
+ r = *lpdwSize < sizeof(COMMCONFIG); /* TRUE if not enough space */
*lpdwSize = sizeof(COMMCONFIG);
- if(!r)
+ if(r)
return FALSE;
lpCommConfig->dwSize = sizeof(COMMCONFIG);
More information about the wine-patches
mailing list