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

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


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

* 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 :

More information about the wine-patches mailing list