Added workaround for CompareStringEx() and GetLocaleInfoEx() functions.

This commit is contained in:
LoRd_MuldeR 2023-04-07 14:24:07 +02:00
parent b8225eeb99
commit 85e0b8e39a
3 changed files with 22 additions and 0 deletions

View File

@ -15,3 +15,13 @@ int WINAPI XPCompatLib_LCMapStringEx(LPCWSTR lpLocaleName, DWORD dwMapFlags, LPC
{
return LCMapStringW(LOCALE_SYSTEM_DEFAULT, dwMapFlags, lpSrcStr, cchSrc, lpDestStr, cchDest);
}
int WINAPI XPCompatLib_GetLocaleInfoEx(LPCWSTR lpLocaleName, LCTYPE LCType, LPWSTR lpLCData, int cchData)
{
return GetLocaleInfoW(LOCALE_SYSTEM_DEFAULT, LCType, lpLCData, cchData);
}
int WINAPI XPCompatLib_CompareStringEx(LPCWSTR lpLocaleName, DWORD dwCmpFlags, LPCWCH lpString1, int cchCount1, LPCWCH lpString2, int cchCount2, LPNLSVERSIONINFO lpVersionInformation, LPVOID lpReserved, LPARAM lParam)
{
return CompareStringW(LOCALE_SYSTEM_DEFAULT, dwCmpFlags, lpString1, cchCount1, lpString2, cchCount2);
}

View File

@ -5,12 +5,18 @@
.data
__imp_CompareStringEx dq XPCompatLib_CompareStringEx
__imp_GetLocaleInfoEx dq XPCompatLib_GetLocaleInfoEx
__imp_InitializeCriticalSectionEx dq XPCompatLib_InitializeCriticalSectionEx
__imp_LCMapStringEx dq XPCompatLib_LCMapStringEx
externdef __imp_CompareStringEx : QWORD
externdef __imp_GetLocaleInfoEx : QWORD
externdef __imp_InitializeCriticalSectionEx : QWORD
externdef __imp_LCMapStringEx : QWORD
extern XPCompatLib_CompareStringEx : proc
extern XPCompatLib_GetLocaleInfoEx : proc
extern XPCompatLib_InitializeCriticalSectionEx : proc
extern XPCompatLib_LCMapStringEx : proc

View File

@ -7,12 +7,18 @@
.data
__imp__CompareStringEx@36 dd _XPCompatLib_CompareStringEx@36
__imp__GetLocaleInfoEx@16 dd _XPCompatLib_GetLocaleInfoEx@16
__imp__InitializeCriticalSectionEx@12 dd _XPCompatLib_InitializeCriticalSectionEx@12
__imp__LCMapStringEx@36 dd _XPCompatLib_LCMapStringEx@36
externdef __imp__CompareStringEx@36 : DWORD
externdef __imp__GetLocaleInfoEx@16 : DWORD
externdef __imp__InitializeCriticalSectionEx@12 : DWORD
externdef __imp__LCMapStringEx@36 : DWORD
extern _XPCompatLib_CompareStringEx@36 : proc
extern _XPCompatLib_GetLocaleInfoEx@16 : proc
extern _XPCompatLib_InitializeCriticalSectionEx@12 : proc
extern _XPCompatLib_LCMapStringEx@36 : proc