Hans Leidekker : kernel32: GetModuleHandleEx already clears the module handle on failure.