Commit 7c7f155b authored by Thuy Nguyen's avatar Thuy Nguyen Committed by Alexandre Julliard

Resolve environment variable when enumerating values.

parent 3405f5c6
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment