1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-26 19:48:01 +02:00

Fix for localized system directory names

This commit is contained in:
Brian Fiete 2020-01-18 14:42:18 -08:00
parent 840c7d10dd
commit e2799b8d6d

View file

@ -2566,9 +2566,9 @@ BFP_EXPORT void BFP_CALLTYPE BfpDirectory_GetSysDirectory(BfpSysDirectoryKind sy
String path;
auto _GetKnownFolder = [&](REFKNOWNFOLDERID rfid)
{
{
PWSTR pStrPtr;
int result = SHGetKnownFolderPath(rfid, KF_FLAG_CREATE, NULL, &pStrPtr);
int result = SHGetKnownFolderPath(rfid, KF_FLAG_CREATE | KF_FLAG_SIMPLE_IDLIST, NULL, &pStrPtr);
if (result != 0)
{
OUTRESULT(BfpFileResult_UnknownError);