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

Alexandre Julliard julliard at winehq.org
Wed Jun 20 13:49:43 CDT 2012


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Wed Jun 20 00:54:01 2012 +0200

msvcp90: Use the CSTR_XXX macros instead of numeric literals.

---

 dlls/msvcp90/locale.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msvcp90/locale.c b/dlls/msvcp90/locale.c
index 5ca0148..e415807 100644
--- a/dlls/msvcp90/locale.c
+++ b/dlls/msvcp90/locale.c
@@ -784,7 +784,7 @@ int __cdecl _Strcoll(const char *first1, const char *last1, const char *first2,
         lcid = coll->handle;
     else
         lcid = ___lc_handle_func()[LC_COLLATE];
-    return CompareStringA(lcid, 0, first1, last1-first1, first2, last2-first2)-2;
+    return CompareStringA(lcid, 0, first1, last1-first1, first2, last2-first2)-CSTR_EQUAL;
 }
 
 /* ?do_compare@?$collate at D@std@@MBEHPBD000 at Z */
@@ -1045,7 +1045,7 @@ int __cdecl _Wcscoll(const wchar_t *first1, const wchar_t *last1, const wchar_t
         lcid = coll->handle;
     else
         lcid = ___lc_handle_func()[LC_COLLATE];
-    return CompareStringW(lcid, 0, first1, last1-first1, first2, last2-first2)-2;
+    return CompareStringW(lcid, 0, first1, last1-first1, first2, last2-first2)-CSTR_EQUAL;
 }
 
 /* ?do_compare@?$collate at _W@std@@MBEHPB_W000 at Z */




More information about the wine-cvs mailing list