Resolve environment variable when enumerating values.

This commit is contained in:
Thuy Nguyen 1999-09-04 11:03:22 +00:00 committed by Alexandre Julliard
parent 3405f5c6cd
commit 7c7f155be3
1 changed files with 9 additions and 4 deletions

View File

@ -811,10 +811,15 @@ int PROFILE_EnumerateWineIniSection(
/* Ignore blank entries -- these shouldn't exist, but let's
be extra careful */
if(scankey->name[0]) {
cbfn(scankey->name, scankey->value, userptr);
++calls;
}
if (!scankey->name[0]) continue;
if (!scankey->value) cbfn(scankey->name, NULL, userptr);
else
{
char value[1024];
PROFILE_CopyEntry(value, scankey->value, sizeof(value), TRUE);
cbfn(scankey->name, value, userptr);
}
++calls;
}
break;