[Bug 17917] New *.ini files contain spurious [] lines
wine-bugs at winehq.org
wine-bugs at winehq.org
Thu Apr 2 04:48:45 CDT 2009
http://bugs.winehq.org/show_bug.cgi?id=17917
Paul Vriens <Paul.Vriens.Wine at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Paul.Vriens.Wine at gmail.com
--- Comment #4 from Paul Vriens <Paul.Vriens.Wine at gmail.com> 2009-04-02 04:48:45 ---
Looks like the number of empty sections ([]) is equal to the total number of
values - 1. Coincidence?
This piece from profile.c looks suspicious:
*p++ = '[';
if (section->name[0])
{
strcpyW( p, section->name );
p += strlenW(p);
}
*p++ = ']';
*p++ = '\r';
*p++ = '\n';
If we don't have a section name we will write "[]\r\n".
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list