Francois Gouget : msvcrt: Use the CSTR_XXX macros instead of numeric literals.

Alexandre Julliard julliard at winehq.org
Thu Jun 21 15:03:38 CDT 2012


Module: wine
Branch: master
Commit: d817bbd6f45a1e329ba339a2b8691261a7045239
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d817bbd6f45a1e329ba339a2b8691261a7045239

Author: Francois Gouget <fgouget at free.fr>
Date:   Wed Jun 20 23:40:33 2012 +0200

msvcrt: Use the CSTR_XXX macros instead of numeric literals.

---

 dlls/msvcrt/string.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/msvcrt/string.c b/dlls/msvcrt/string.c
index ad9e88b..6fe5aab 100644
--- a/dlls/msvcrt/string.c
+++ b/dlls/msvcrt/string.c
@@ -543,7 +543,7 @@ int CDECL MSVCRT_strcoll_l( const char* str1, const char* str2, MSVCRT__locale_t
     else
         locinfo = locale->locinfo;
 
-    return CompareStringA(locinfo->lc_handle[MSVCRT_LC_CTYPE], 0, str1, -1, str2, -1)-2;
+    return CompareStringA(locinfo->lc_handle[MSVCRT_LC_CTYPE], 0, str1, -1, str2, -1)-CSTR_EQUAL;
 }
 
 /*********************************************************************
@@ -567,7 +567,7 @@ int CDECL MSVCRT__stricoll_l( const char* str1, const char* str2, MSVCRT__locale
         locinfo = locale->locinfo;
 
     return CompareStringA(locinfo->lc_handle[MSVCRT_LC_CTYPE], NORM_IGNORECASE,
-            str1, -1, str2, -1)-2;
+            str1, -1, str2, -1)-CSTR_EQUAL;
 }
 
 /*********************************************************************
@@ -590,7 +590,7 @@ int CDECL MSVCRT_strncoll_l( const char* str1, const char* str2, MSVCRT_size_t c
     else
         locinfo = locale->locinfo;
 
-    return CompareStringA(locinfo->lc_handle[MSVCRT_LC_CTYPE], 0, str1, count, str2, count)-2;
+    return CompareStringA(locinfo->lc_handle[MSVCRT_LC_CTYPE], 0, str1, count, str2, count)-CSTR_EQUAL;
 }
 
 /*********************************************************************
@@ -614,7 +614,7 @@ int CDECL MSVCRT__strnicoll_l( const char* str1, const char* str2, MSVCRT_size_t
         locinfo = locale->locinfo;
 
     return CompareStringA(locinfo->lc_handle[MSVCRT_LC_CTYPE], NORM_IGNORECASE,
-            str1, count, str2, count)-2;
+            str1, count, str2, count)-CSTR_EQUAL;
 }
 
 /*********************************************************************




More information about the wine-cvs mailing list