[*] Windows 10 LTSC / other branches crash on startup fix (missing FOLDERID_UserProgramFiles for some reason)

This commit is contained in:
Reece Wilson 2024-03-12 04:32:45 +00:00
parent 0f4a7bf8cb
commit 2ba5ae6fa5

View File

@ -231,6 +231,10 @@ namespace Aurora::IO::FS
return str;
}
if (rfid == FOLDERID_UserProgramFiles)
{
return "";
}
SysPanic("Couldn't get known special directory path of [MS:{}-{}-{}-{}{}{}{}{}{}{}{}] with a NULL access token",
rfid.Data1, rfid.Data2, rfid.Data3, rfid.Data4[0], rfid.Data4[1], rfid.Data4[2], rfid.Data4[3], rfid.Data4[4], rfid.Data4[5], rfid.Data4[6], rfid.Data4[7]);
}