pdh: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6fc259a57d
commit
f1fe6d5415
|
@ -213,7 +213,7 @@ static BOOL is_local_machine( const WCHAR *name, DWORD len )
|
||||||
DWORD buflen = ARRAY_SIZE(buf);
|
DWORD buflen = ARRAY_SIZE(buf);
|
||||||
|
|
||||||
if (!GetComputerNameW( buf, &buflen )) return FALSE;
|
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 )
|
static BOOL pdh_match_path( LPCWSTR fullpath, LPCWSTR path )
|
||||||
|
|
Loading…
Reference in New Issue