Fix improper file handling in Win32

Fixed an improper handling of missing files in Win32.