Module: wine Branch: master Commit: 267064dcd3bcb26f831fb47ce5d64e6b4bea9886 URL: https://source.winehq.org/git/wine.git/?a=commit;h=267064dcd3bcb26f831fb47ce...
Author: Piotr Caban piotr@codeweavers.com Date: Mon Apr 1 18:50:46 2019 +0200
ver.dll16: Don't use strncasecmp.
Signed-off-by: Piotr Caban piotr@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/ver.dll16/version.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/ver.dll16/version.c b/dlls/ver.dll16/version.c index b2cb9ae..aa7b49b 100644 --- a/dlls/ver.dll16/version.c +++ b/dlls/ver.dll16/version.c @@ -29,6 +29,7 @@ #define NONAMELESSSTRUCT #include "windef.h" #include "wine/winbase16.h" +#include "winternl.h" #include "winver.h" #include "lzexpand.h" #include "wine/unicode.h" @@ -212,7 +213,7 @@ static BOOL find_ne_resource( HFILE lzfd, LPCSTR typeid, LPCSTR resid, if (!(typeInfo->type_id & 0x8000)) { BYTE *p = resTab + typeInfo->type_id; - if ((*p == len) && !strncasecmp( (char*)p+1, typeid, len )) goto found_type; + if ((*p == len) && !_strnicmp( (char*)p+1, typeid, len )) goto found_type; } typeInfo = (NE_TYPEINFO *)((char *)(typeInfo + 1) + typeInfo->count * sizeof(NE_NAMEINFO)); @@ -242,7 +243,7 @@ static BOOL find_ne_resource( HFILE lzfd, LPCSTR typeid, LPCSTR resid, { BYTE *p = resTab + nameInfo->id; if (nameInfo->id & 0x8000) continue; - if ((*p == len) && !strncasecmp( (char*)p+1, resid, len )) goto found_name; + if ((*p == len) && !_strnicmp( (char*)p+1, resid, len )) goto found_name; } } else /* numeric resource id */