[Bug 8849] nmake doesn't work as expected.

Wine Bugs wine-bugs at winehq.org
Sat Aug 4 10:50:30 CDT 2007


http://bugs.winehq.org/show_bug.cgi?id=8849





------- Additional Comments From damjan.jov at gmail.com  2007-04-08 10:50 -------
Native snoop:
0009:CALL MSVCRT._mbsnbicmp(0042f6b0 "include 
\"nmake2.mak\"",00413f2c "INCLUDE",00000007) ret=00405120
0009:RET  MSVCRT._mbsnbicmp() retval=00000000 ret=00405120

Builtin relay:
0009:Call msvcrt._mbsnbicmp(0013b320 "include 
\"nmake2.mak\"",00413f2c "INCLUDE",00000007) ret=00405120
0009:Ret  msvcrt._mbsnbicmp() retval=00000020 ret=00405120

The following patch (already sent to wine-patches) fixes it:

diff --git a/dlls/msvcrt/mbcs.c b/dlls/msvcrt/mbcs.c
index 2e5310e..07e38ec 100644
--- a/dlls/msvcrt/mbcs.c
+++ b/dlls/msvcrt/mbcs.c
@@ -593,7 +593,7 @@ int CDECL _mbsnbicmp(const unsigned char* str, const 
unsigned char* cmp, MSVCRT_
     }
     return 0; /* Matched len bytes */
   }
-  return u_strncmp(str,cmp,len);
+  return u_strncasecmp(str,cmp,len);
 }
 
 /*********************************************************************


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list