Commit 81963df6 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Enhanced error handling on input stream reading.

parent 9e4cf5cb
......@@ -29,8 +29,8 @@
#undef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
if ( (result = DEBUG_ReadLine("Wine-dbg>", (char *) buf, max_size, TRUE, TRUE )) < 0 ) \
YY_FATAL_ERROR( "read() in flex scanner failed" );
if ( (result = DEBUG_ReadLine("Wine-dbg>", buf, max_size, TRUE, TRUE)) <= 0 ) \
YY_FATAL_ERROR( "ReadLine() in flex scanner failed" );
#define YY_NO_UNPUT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment