Skip the Unicode signature if present.
This commit is contained in:
parent
f0c62a89ea
commit
ec3cf77d65
|
@ -852,7 +852,9 @@ static DWORD parse_buffer( struct inf_file *file, const WCHAR *buffer, const WCH
|
||||||
struct parser parser;
|
struct parser parser;
|
||||||
const WCHAR *pos = buffer;
|
const WCHAR *pos = buffer;
|
||||||
|
|
||||||
parser.start = buffer;
|
if (*pos == 0xfeff) pos++; /* skip Unicode BOM signature */
|
||||||
|
|
||||||
|
parser.start = pos;
|
||||||
parser.end = end;
|
parser.end = end;
|
||||||
parser.file = file;
|
parser.file = file;
|
||||||
parser.line = NULL;
|
parser.line = NULL;
|
||||||
|
|
Loading…
Reference in New Issue