[Bug 1140] Problem parsing comments in Setup .INFs

Wine Bugs wine-bugs at winehq.com
Sat Jun 28 10:07:20 CDT 2003


http://bugs.winehq.com/show_bug.cgi?id=1140





------- Additional Comments From winebug at flonet.net  2003-28-06 10:07 -------
Bug comments restored from Gmane.org:

It seems that WINE Setup API has problem parsing comments in .INFs. For
instance, when trying to install HTML Help Workshop above the Setup fails with
the message:

Incorrect INF file syntax in section 'HHWDestinationDir             ; Ask user
for custom destination'

Uncompressing the self-extracting package and removing the comments avoids the
problem:

  cabextract htmlhelp.exe
  mv htmlhelp.inf htmlhelp.inf.orig
  sed -e 's/;.*$//g' htmlhelp.inf.orig > htmlhelp.inf
  wine setup.exe


------- Additional Comments From j_r_fonseca at yahoo.co.uk  2002-11-10 19:08 -------
These are the relevant bits when running with -debugmsg +all

trace:string:lstrcpynA (0x406c1c5c, "W95INF16.DLL", 260)
trace:string:lstrcpynA (0x406c1118, "/home/jfonseca", 1024)
trace:string:lstrcpynW (0x403cb028, L"HHWDestinationDir\t\t; Ask user for custom
destination", 2048)
trace:string:lstrcpynA (0x406c0a78, "/home/jfonseca", 1024)
trace:setupapi:IpGetProfileString16 0x403c8e48: section "version" entry
"signature" ret "$Chicago$"
trace:setupapi:GenFormStrWithoutPlaceHolders16 "HHWDestinationDir\t\t; Ask user
for custom destination" -> "HHWDestinationDir\t\t; Ask user for custom destination"
trace:reg:RegQueryValueExA
(0x50,"ProgramFilesPath",(nil),(nil),0x406c1d14,0x406c1e7c=260)
trace:reg:RegQueryValueExA
(0x50,"SM_AccessoriesName",(nil),(nil),0x406c1e18,0x406c1e7c=100)
trace:reg:RegQueryValueExA
(0x50,"PF_AccessoriesName",(nil),(nil),0x406c1e18,0x406c1e7c=100)
trace:string:lstrcpynA (0x406c0ddc, "/home/jfonseca", 1024)
trace:string:lstrcpynA (0x406c0d78, "/home/jfonseca", 1024)
trace:resource:LoadStringA instance = 75a50000, id = 045d, buffer = 406c1b34,
length = 512
trace:resource:LoadStringW instance = 75a50000, id = 045d, buffer = 403c9818,
length = 512
trace:resource:LoadStringW strlen = 41
trace:resource:LoadStringW L"Incorrect INF file syntax in section '%1'" loaded !
trace:resource:LoadStringA "Incorrect INF file syntax in section '%1'" loaded !


------- Additional Comments From j_r_fonseca at yahoo.co.uk  2002-11-10 19:39 -------
The strangest thing is that the ';' is already being considered in
value_name_state() in dlls/setupapi/parser.c.

I guess the problem must live on PARSER_string_substW() in
dlls/setupapi/parser.c, which is called by GenFormStrWithoutPlaceHolders16.
Unfortunately there isn't available information about this later API.

-- 
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list