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; } Cheers! -- Francis Brosnan Blazquez <francis at aspl.es> Advanced Software Production Line, S.L.