[Vortex] [PATCH] guard win32 close calls [3/5]

Francis Brosnan Blazquez francis at aspl.es
Fri Feb 8 17:54:26 CET 2008

Hi Benoit,

The patch looks good, but why don't directly check for X rather than
placing an empty branch "if (!X) {}". I'm missing something?

> +#define CLOSE_WIN32_HANDLE(X) if(!X) {} else{ CloseHandle(X); (X) =
> NULL; }

Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.

More information about the Vortex mailing list