Fix Error Codes 0xFFFFFFFF or 0x8007F0F4 on Windows systems