Piotr Caban : msvcrt: Don't call invalid parameter handler in str{n, i}cmp functions.

Alexandre Julliard julliard at winehq.org
Mon Jan 28 13:43:20 CST 2013


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

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Mon Jan 28 11:40:36 2013 +0100

msvcrt: Don't call invalid parameter handler in str{n,i}cmp functions.

---

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

diff --git a/dlls/msvcrt/string.c b/dlls/msvcrt/string.c
index d9ec353..e4e94ff 100644
--- a/dlls/msvcrt/string.c
+++ b/dlls/msvcrt/string.c
@@ -1567,7 +1567,7 @@ int __cdecl MSVCRT__strnicmp_l(const char *s1, const char *s2,
     MSVCRT_pthreadlocinfo locinfo;
     char c1, c2;
 
-    if(!MSVCRT_CHECK_PMT(s1!=NULL && s2!=NULL))
+    if(s1==NULL || s2==NULL)
         return MSVCRT__NLSCMPERROR;
 
     if(!count)




More information about the wine-cvs mailing list