Commit 39a16e82 authored by Frank's avatar Frank Committed by Alexandre Julliard

Fixed size check in GetCommConfig().

parent 5ac00719
...@@ -2071,10 +2071,9 @@ BOOL WINAPI GetCommConfig( ...@@ -2071,10 +2071,9 @@ BOOL WINAPI GetCommConfig(
if(lpCommConfig == NULL) if(lpCommConfig == NULL)
return FALSE; return FALSE;
r = *lpdwSize < sizeof(COMMCONFIG); /* TRUE if not enough space */
r = *lpdwSize < sizeof(COMMCONFIG);
*lpdwSize = sizeof(COMMCONFIG); *lpdwSize = sizeof(COMMCONFIG);
if(!r) if(r)
return FALSE; return FALSE;
lpCommConfig->dwSize = sizeof(COMMCONFIG); lpCommConfig->dwSize = sizeof(COMMCONFIG);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment