diff options
author | Ladislav Zezula <ladislav.zezula@avast.com> | 2022-09-28 20:15:07 +0200 |
---|---|---|
committer | Ladislav Zezula <ladislav.zezula@avast.com> | 2022-09-28 20:15:07 +0200 |
commit | 6c113f66819fc3a4934393cc2956036a99887e44 (patch) | |
tree | afee55102a2fa423486f93b5071878c0aa097cd5 /src/SFileOpenFileEx.cpp | |
parent | 7a664bf6be4377aabe03f118fcdb6d1d3abc48f5 (diff) |
lcLocale -> lcFileLocale. Now also contains platform
Diffstat (limited to 'src/SFileOpenFileEx.cpp')
-rw-r--r-- | src/SFileOpenFileEx.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/SFileOpenFileEx.cpp b/src/SFileOpenFileEx.cpp index 96d8cfc..5dc2dbf 100644 --- a/src/SFileOpenFileEx.cpp +++ b/src/SFileOpenFileEx.cpp @@ -170,13 +170,13 @@ bool OpenPatchedFile(HANDLE hMpq, const char * szFileName, HANDLE * PtrFile) //----------------------------------------------------------------------------- // SFileEnumLocales enums all locale versions within MPQ. // Functions fills all available language identifiers on a file into the buffer -// pointed by plcLocales. There must be enough entries to copy the localed, +// pointed by PtrFileLocales. There must be enough entries to copy the localed, // otherwise the function returns ERROR_INSUFFICIENT_BUFFER. DWORD WINAPI SFileEnumLocales( HANDLE hMpq, const char * szFileName, - LCID * PtrLocales, + LCID * PtrFileLocales, LPDWORD PtrMaxLocales, DWORD dwSearchScope) { @@ -208,8 +208,8 @@ DWORD WINAPI SFileEnumLocales( while(pHash != NULL) { // Put the locales to the buffer - if(PtrLocales != NULL && dwLocales < dwMaxLocales) - *PtrLocales++ = pHash->lcLocale; + if(PtrFileLocales != NULL && dwLocales < dwMaxLocales) + *PtrFileLocales++ = SFILE_MAKE_LCID(pHash->Locale, pHash->Platform); dwLocales++; // Get the next locale |