win32: fixing handle