WineDbg and input stream
Eric Pouech
eric.pouech at wanadoo.fr
Tue Jul 9 15:58:36 CDT 2002
this patch fixes some error case handling (mainly when the standard
input handle cannot be read from, we should report a bit better this
error case)
A+
-------------- next part --------------
Name: wdbg_input
ChangeLog: enhanced error handling on input stream reading
License: X11
GenDate: 2002/07/09 20:33:54 UTC
ModifiedFiles: debugger-merge/debug.l
AddedFiles:
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/debugger/debug.l,v
retrieving revision 1.27
diff -u -u -r1.27 debug.l
--- debugger-merge/debug.l 13 Jun 2002 21:37:41 -0000 1.27
+++ debugger-merge/debug.l 25 Jun 2002 05:47:31 -0000
@@ -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
More information about the wine-patches
mailing list