summaryrefslogtreecommitdiff
path: root/src/mir_core/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_core/utils.cpp')
-rw-r--r--src/mir_core/utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mir_core/utils.cpp b/src/mir_core/utils.cpp
index 10348a28f1..3d7f526423 100644
--- a/src/mir_core/utils.cpp
+++ b/src/mir_core/utils.cpp
@@ -380,7 +380,7 @@ MIR_CORE_DLL(int) mir_strcmp(const char *p1, const char *p2)
return (p2 == NULL) ? 0 : -1;
if (p2 == NULL)
return 1;
- return strcmp(p1, p2);
+ return CompareStringA(LOCALE_USER_DEFAULT, 0, p1, -1, p2, -1);
}
MIR_CORE_DLL(int) mir_wstrcmp(const wchar_t *p1, const wchar_t *p2)
@@ -389,7 +389,7 @@ MIR_CORE_DLL(int) mir_wstrcmp(const wchar_t *p1, const wchar_t *p2)
return (p2 == NULL) ? 0 : -1;
if (p2 == NULL)
return 1;
- return wcscmp(p1, p2);
+ return CompareStringW(LOCALE_USER_DEFAULT, 0, p1, -1, p2, -1);
}
MIR_CORE_DLL(int) mir_strcmpi(const char *p1, const char *p2)
@@ -398,7 +398,7 @@ MIR_CORE_DLL(int) mir_strcmpi(const char *p1, const char *p2)
return (p2 == NULL) ? 0 : -1;
if (p2 == NULL)
return 1;
- return stricmp(p1, p2);
+ return CompareStringA(LOCALE_USER_DEFAULT, NORM_IGNORECASE, p1, -1, p2, -1);
}
MIR_CORE_DLL(int) mir_wstrcmpi(const wchar_t *p1, const wchar_t *p2)
@@ -407,5 +407,5 @@ MIR_CORE_DLL(int) mir_wstrcmpi(const wchar_t *p1, const wchar_t *p2)
return (p2 == NULL) ? 0 : -1;
if (p2 == NULL)
return 1;
- return wcsicmp(p1, p2);
+ return CompareStringW(LOCALE_USER_DEFAULT, NORM_IGNORECASE, p1, -1, p2, -1);
}