From 39a16e82978677df2578c4e738a55a020546b334 Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 11 Dec 2003 04:25:00 +0000 Subject: [PATCH] Fixed size check in GetCommConfig(). --- dlls/kernel/comm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/kernel/comm.c b/dlls/kernel/comm.c index 2c55bea119..2c8670f0b2 100644 --- a/dlls/kernel/comm.c +++ b/dlls/kernel/comm.c @@ -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); -- 2.32.0.93.g670b81a890