PATCH: comm patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This is from bug 1590.

Ciao, Marcus

Changelog:
	Frank <f.gockel@xxxxxxxxxxx>
	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);


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux