setupapi: Fix parsing of UCS-16 files

Detlef Riekenberg wine.dev at web.de
Wed Apr 26 11:02:15 CDT 2006


Am Mittwoch, den 26.04.2006, 15:42 +0100 schrieb Robert Shearman:

> +        if (*new_buff == 0xfeff)
> +            new_buff++;


> .. new_buff, (WCHAR *)((char*)new_buff +size), error_line );

This points behind the End of the File-Mapping, when you skip the BOM.

The Pointer to the End of the Data is still:
 (WCHAR *)((char*)buffer+size


-- 
By By ...
      ... Detlef




More information about the wine-devel mailing list