Alexandre Julliard : pdh: 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: f1fe6d54154f58f261917c853a0e526547212b38
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f1fe6d54154f58f261917c853a0e526547212b38
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed May 8 08:34:41 2019 -0500
pdh: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/pdh/pdh_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/pdh/pdh_main.c b/dlls/pdh/pdh_main.c
index 7ef91f1..11c917a 100644
--- a/dlls/pdh/pdh_main.c
+++ b/dlls/pdh/pdh_main.c
@@ -213,7 +213,7 @@ static BOOL is_local_machine( const WCHAR *name, DWORD len )
DWORD buflen = ARRAY_SIZE(buf);
if (!GetComputerNameW( buf, &buflen )) return FALSE;
- return len == buflen && !memicmpW( name, buf, buflen );
+ return len == buflen && !strncmpiW( name, buf, buflen );
}
static BOOL pdh_match_path( LPCWSTR fullpath, LPCWSTR path )
More information about the wine-cvs
mailing list