Fix formatting issues

remotes/push_mirror/msnyder-llvm-3.7-3.9
Prashant Pathak 9 years ago committed by Micah Snyder
parent 5411f7ebee
commit a45f8f4421
  1. 5
      win32/clamav-for-windows/freshclamwrap/freshclamwrap.c

@ -222,12 +222,13 @@ DWORD WINAPI watch_stop(LPVOID x) {
while(1) {
if(!ReadFile(updpipe, &st, sizeof(st), NULL, NULL)) {
DWORD err = GetLastError();
if ( err == ERROR_BROKEN_PIPE )
if ( err == ERROR_BROKEN_PIPE ) {
break;
}
else if( err != ERROR_IO_PENDING || !GetOverlappedResult(updpipe, &o, &got, TRUE) ) {
flog("ERROR: failed to read stop event from pipe");
return 0;
}
}
}
if(st.state == UPD_STOP)
break;

Loading…
Cancel
Save