Resend PATCH - setupapi add support for both Windows and Unix style line endings to setupapi parser

Todd Vierling tv at pobox.com
Mon Jun 16 22:07:49 CDT 2003


On Mon, 16 Jun 2003, Steven Edwards wrote:

: Does this need to be changed or is there something else wrong with this
: patch?

: -    return (ptr >= parser->end || *ptr == CONTROL_Z || *ptr == '\n');
: +    return (ptr >= parser->end || *ptr == CONTROL_Z || *ptr == '\n' ||
: (*ptr == '\r'&& *(ptr + 1) == '\n'));

Could overrun the buffer by looking one char too far if the last character
of the file is '\r'.

-- 
-- Todd Vierling <tv at pobox.com>



More information about the wine-devel mailing list