Commit f1fe6d54 authored by Alexandre Julliard's avatar Alexandre Julliard

pdh: Use strncmpiW instead of memicmpW for strings without embedded nulls.

parent 6fc259a5
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment