Alexandre Julliard : shlwapi: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Alexandre Julliard
julliard at winehq.org
Wed May 8 18:22:48 CDT 2019
Module: wine
Branch: master
Commit: 388a3ef908140b3e9c5c4a103f588268675b14d5
URL: https://source.winehq.org/git/wine.git/?a=commit;h=388a3ef908140b3e9c5c4a103f588268675b14d5
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed May 8 08:34:56 2019 -0500
shlwapi: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/shlwapi/url.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/shlwapi/url.c b/dlls/shlwapi/url.c
index fb38920..72cc461 100644
--- a/dlls/shlwapi/url.c
+++ b/dlls/shlwapi/url.c
@@ -138,7 +138,7 @@ static DWORD get_scheme_code(LPCWSTR scheme, DWORD scheme_len)
for(i = 0; i < ARRAY_SIZE(shlwapi_schemes); i++) {
if(scheme_len == strlenW(shlwapi_schemes[i].scheme_name)
- && !memicmpW(scheme, shlwapi_schemes[i].scheme_name, scheme_len))
+ && !strncmpiW(scheme, shlwapi_schemes[i].scheme_name, scheme_len))
return shlwapi_schemes[i].scheme_number;
}
More information about the wine-cvs
mailing list