Fixed size check in GetCommConfig().
This commit is contained in:
parent
5ac00719c8
commit
39a16e8297
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue