Fix 0x80D0000A error on Windows 11/10