regedit: Fix incorrect usage of CompareString in parseKeyName.

This commit is contained in:
Sebastian Lackner 2014-11-19 08:55:58 +01:00 committed by Alexandre Julliard
parent f6b552324e
commit fb37d215cd
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ static BOOL parseKeyName(LPWSTR lpKeyName, HKEY *hKey, LPWSTR *lpKeyPath)
*hKey = NULL;
for (i = 0; i < REG_CLASS_NUMBER; i++) {
if (CompareStringW(LOCALE_USER_DEFAULT, 0, lpKeyName, len, reg_class_namesW[i], len) == CSTR_EQUAL &&
if (CompareStringW(LOCALE_USER_DEFAULT, 0, lpKeyName, len, reg_class_namesW[i], -1) == CSTR_EQUAL &&
len == lstrlenW(reg_class_namesW[i])) {
*hKey = reg_class_keys[i];
break;