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 /* Ignore blank entries -- these shouldn't exist, but let's
be extra careful */ be extra careful */
if(scankey->name[0]) { if (!scankey->name[0]) continue;
cbfn(scankey->name, scankey->value, userptr); if (!scankey->value) cbfn(scankey->name, NULL, userptr);
++calls; else
} {
char value[1024];
PROFILE_CopyEntry(value, scankey->value, sizeof(value), TRUE);
cbfn(scankey->name, value, userptr);
}
++calls;
} }
break; break;