Fix 0x0000004E Error on Windows 11