Resolve environment variable when enumerating values.
This commit is contained in:
parent
3405f5c6cd
commit
7c7f155be3
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue