setupapi: Fix parser to be able to load MS's .sdb files

James Hawkins truiken at gmail.com
Fri May 27 20:06:47 CDT 2005


Hey,

The following fixes allow Visual Studio 2005 to load setup.sdb. 
Before the fix, parser would trip up over a .sdb file.  Comments and
suggestions are greatly appreciated.  I've been hunting these bugs
down for a couple days now.  I've tested the changes against all sorts
of other inf files and they work.  The changes are pretty
non-intrusive.

Changelog
* Don't replace a null character with a space in the token.  Skip over
it instead.
* Skip over initial bytes 255 and 254 if they exist.
* Treat the null character as a space in leading_spaces_state.

-- 
James Hawkins
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parser-fixes.diff
Type: text/x-patch
Size: 1387 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050527/a0cf0326/parser-fixes.bin


More information about the wine-patches mailing list