1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-27 03:58: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

@ -2568,7 +2568,7 @@ BFP_EXPORT void BFP_CALLTYPE BfpDirectory_GetSysDirectory(BfpSysDirectoryKind sy
auto _GetKnownFolder = [&](REFKNOWNFOLDERID rfid) auto _GetKnownFolder = [&](REFKNOWNFOLDERID rfid)
{ {
PWSTR pStrPtr; 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) if (result != 0)
{ {
OUTRESULT(BfpFileResult_UnknownError); OUTRESULT(BfpFileResult_UnknownError);