wine/dlls/setupapi parser.c

Robert Shearman rob at codeweavers.com
Tue May 31 12:12:46 CDT 2005


Alexandre Julliard wrote:

>Index: wine/dlls/setupapi/parser.c
>diff -u -p wine/dlls/setupapi/parser.c:1.15 wine/dlls/setupapi/parser.c:1.16
>--- wine/dlls/setupapi/parser.c:1.15	Tue May 31 17:10:06 2005
>+++ wine/dlls/setupapi/parser.c	Tue May 31 17:10:06 2005
>@@ -852,7 +852,9 @@ static DWORD parse_buffer( struct inf_fi
>     struct parser parser;
>     const WCHAR *pos = buffer;
> 
>-    parser.start       = buffer;
>+    if (*pos == 0xfeff) pos++;  /* skip Unicode BOM signature */
>+
>+    parser.start       = pos;
>     parser.end         = end;
>     parser.file        = file;
>     parser.line        = NULL;
>

This shouldn't be necessary. The Unicode BOM (or Zero Width Non-Breaking 
Space) has CT_CTYPE1 of C1_SPACE | C1_BLANK so it should be skipped just 
like any other whitespace character.

-- 
Rob Shearman




More information about the wine-devel mailing list