diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-18 22:54:05 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-18 22:54:05 +0000 |
commit | d1ad49337af4b2f89af194676902631a545ab5a2 (patch) | |
tree | 4a70e0125303638651dc10d18e0e053ae86d2631 /src | |
parent | d67e04232b4fff7228a9cdf26fad8f3c28ff1654 (diff) |
dumb windows motherfuckers
git-svn-id: http://svn.miranda-ng.org/main/trunk@11518 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_core/utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mir_core/utils.cpp b/src/mir_core/utils.cpp index 3d7f526423..bf05b84b6e 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 CompareStringA(LOCALE_USER_DEFAULT, 0, p1, -1, p2, -1);
+ return CompareStringA(LOCALE_USER_DEFAULT, 0, p1, -1, p2, -1) - 2;
}
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 CompareStringW(LOCALE_USER_DEFAULT, 0, p1, -1, p2, -1);
+ return CompareStringW(LOCALE_USER_DEFAULT, 0, p1, -1, p2, -1) - 2;
}
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 CompareStringA(LOCALE_USER_DEFAULT, NORM_IGNORECASE, p1, -1, p2, -1);
+ return CompareStringA(LOCALE_USER_DEFAULT, NORM_IGNORECASE, p1, -1, p2, -1) - 2;
}
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 CompareStringW(LOCALE_USER_DEFAULT, NORM_IGNORECASE, p1, -1, p2, -1);
+ return CompareStringW(LOCALE_USER_DEFAULT, NORM_IGNORECASE, p1, -1, p2, -1) - 2;
}
|