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(
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);
......
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