PROFILE_GetString: only accept NULL for keyname to return the list of
keys as Win95 does.
This commit is contained in:
parent
f02fcfc33c
commit
b2ccbb2926
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue