Fixed the stringcompare in _find_or_add_*() (was missing tolower()s).

This commit is contained in:
Marcus Meissner 1999-06-26 11:41:33 +00:00 committed by Alexandre Julliard
parent 719f308f9e
commit f2ef1455a4

View File

@ -841,7 +841,7 @@ static LPKEYSTRUCT _find_or_add_key( LPKEYSTRUCT lpkey, LPWSTR keyname )
lplpkey= &(lpkey->nextsub);
lpxkey = *lplpkey;
while (lpxkey) {
if ( (lpxkey->keyname[0]==keyname[0]) &&
if ( tolower(lpxkey->keyname[0])==tolower(keyname[0]) &&
!lstrcmpiW(lpxkey->keyname,keyname)
)
break;
@ -878,8 +878,8 @@ static void _find_or_add_value( LPKEYSTRUCT lpkey, LPWSTR name, DWORD type,
if (val->name==NULL)
break;
} else {
if ( val->name!=NULL &&
val->name[0]==name[0] &&
if ( val->name!=NULL &&
tolower(val->name[0])==tolower(name[0]) &&
!lstrcmpiW(val->name,name)
)
break;