diff --git a/CompatLib/CompatLib.vcxproj b/CompatLib/CompatLib.vcxproj index 9a979cc..e1e0be4 100644 --- a/CompatLib/CompatLib.vcxproj +++ b/CompatLib/CompatLib.vcxproj @@ -20,9 +20,6 @@ false - - - 16.0 Win32Proj diff --git a/CompatLib/CompatLib.vcxproj.filters b/CompatLib/CompatLib.vcxproj.filters index 8e82512..d936e79 100644 --- a/CompatLib/CompatLib.vcxproj.filters +++ b/CompatLib/CompatLib.vcxproj.filters @@ -22,9 +22,4 @@ Source Files - - - Source Files - - \ No newline at end of file diff --git a/CompatLib/src/compat.c b/CompatLib/src/compat.c deleted file mode 100644 index 889a694..0000000 --- a/CompatLib/src/compat.c +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************/ -/* CompatLib for Windows XP, by LoRd_MuldeR */ -/* This work has been released under the CC0 1.0 Universal license! */ -/******************************************************************************/ - -#define WIN32_LEAN_AND_MEAN 1 -#include - -BOOL WINAPI XPCompatLib_InitializeCriticalSectionEx(LPCRITICAL_SECTION lpCriticalSection, DWORD dwSpinCount, DWORD Flags) -{ - return InitializeCriticalSectionAndSpinCount(lpCriticalSection, dwSpinCount); -} - -int WINAPI XPCompatLib_LCMapStringEx(LPCWSTR lpLocaleName, DWORD dwMapFlags, LPCWSTR lpSrcStr, int cchSrc, LPWSTR lpDestStr, int cchDest, LPNLSVERSIONINFO lpVersionInformation, LPVOID lpReserved, LPARAM sortHandle) -{ - 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); -} diff --git a/CompatLib/src/compat_x64.asm b/CompatLib/src/compat_x64.asm index 0907c39..7a71c03 100644 --- a/CompatLib/src/compat_x64.asm +++ b/CompatLib/src/compat_x64.asm @@ -5,19 +5,19 @@ .data -__imp_CompareStringEx dq XPCompatLib_CompareStringEx -__imp_GetLocaleInfoEx dq XPCompatLib_GetLocaleInfoEx -__imp_InitializeCriticalSectionEx dq XPCompatLib_InitializeCriticalSectionEx -__imp_LCMapStringEx dq XPCompatLib_LCMapStringEx +__imp_CompareStringEx dq __acrt_CompareStringEx +__imp_GetLocaleInfoEx dq __acrt_GetLocaleInfoEx +__imp_InitializeCriticalSectionEx dq __acrt_InitializeCriticalSectionEx +__imp_LCMapStringEx dq __acrt_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 +extern __acrt_CompareStringEx : proc +extern __acrt_GetLocaleInfoEx : proc +extern __acrt_InitializeCriticalSectionEx : proc +extern __acrt_LCMapStringEx : proc end diff --git a/CompatLib/src/compat_x86.asm b/CompatLib/src/compat_x86.asm index 0d57cc8..38ab674 100644 --- a/CompatLib/src/compat_x86.asm +++ b/CompatLib/src/compat_x86.asm @@ -7,19 +7,19 @@ .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 +__imp__CompareStringEx@36 dd ___acrt_CompareStringEx@36 +__imp__GetLocaleInfoEx@16 dd ___acrt_GetLocaleInfoEx@16 +__imp__InitializeCriticalSectionEx@12 dd ___acrt_InitializeCriticalSectionEx@12 +__imp__LCMapStringEx@36 dd ___acrt_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 +extern ___acrt_CompareStringEx@36 : proc +extern ___acrt_GetLocaleInfoEx@16 : proc +extern ___acrt_InitializeCriticalSectionEx@12 : proc +extern ___acrt_LCMapStringEx@36 : proc end