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:
parent
840c7d10dd
commit
e2799b8d6d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue