From c213fb8ea4589b742e6e2426cdd56cfa52aa63f3 Mon Sep 17 00:00:00 2001 From: Adrian Wu Date: Wed, 30 Aug 2017 09:17:48 -0600 Subject: [PATCH] BUGFIX 18264: Make freshclamwrap interpret FC_UPTODATE as UPD_NONE --- win32/clamav-for-windows/freshclamwrap/freshclamwrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win32/clamav-for-windows/freshclamwrap/freshclamwrap.c b/win32/clamav-for-windows/freshclamwrap/freshclamwrap.c index e30f472da..9f72b5e3e 100644 --- a/win32/clamav-for-windows/freshclamwrap/freshclamwrap.c +++ b/win32/clamav-for-windows/freshclamwrap/freshclamwrap.c @@ -325,7 +325,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine /* Early exit for custom only */ if(customonly) { - if(dw == 0) + if( dw == 0 || dw == 1 ) SENDMSG_AND_RETURN(UPD_DONE, dw); else SENDMSG_AND_RETURN(UPD_ABORT, dw); @@ -480,7 +480,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine SENDFAIL_AND_QUIT(UPD_ABORT); } CloseHandle(pinfo.hProcess); - if(dw) { + if( dw && dw != 1 ) { if(dw == STILL_ACTIVE) { flog("WARNING: freshclam didn't exit, killing it..."); kill_freshclam();