PROFILE_GetString: only accept NULL for keyname to return the list of

keys as Win95 does.
This commit is contained in:
Uwe Bonnes 2000-03-04 19:03:15 +00:00 committed by Alexandre Julliard
parent f02fcfc33c
commit b2ccbb2926
1 changed files with 3 additions and 0 deletions

View File

@ -767,6 +767,9 @@ static INT PROFILE_GetString( LPCSTR section, LPCSTR key_name,
section, key_name, def_val, buffer );
return strlen( buffer );
}
if (key_name && !(key_name[0]))
/* Win95 returns 0 on keyname "". Tested with Likse32 bon 000227*/
return 0;
if (section && section[0])
return PROFILE_GetSection(CurProfile->section, section, buffer, len,
FALSE, FALSE);