[PATCH] d3dxof: Fixed another read_bytes (Coverity)
Marcus Meissner
marcus at jet.franken.de
Thu Jun 16 11:13:22 CDT 2011
Hi,
CID 5133.
Ciao, Marcus
---
dlls/d3dxof/parsing.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dxof/parsing.c b/dlls/d3dxof/parsing.c
index 55ab45d..4acaaba 100644
--- a/dlls/d3dxof/parsing.c
+++ b/dlls/d3dxof/parsing.c
@@ -1051,7 +1051,8 @@ static void go_to_next_definition(parse_buffer * buf)
char c;
while (buf->rem_bytes)
{
- read_bytes(buf, &c, 1);
+ if (!read_bytes(buf, &c, 1))
+ return;
if ((c == '#') || (c == '/'))
{
/* Handle comment (# or //) */
--
1.7.3.4
More information about the wine-patches
mailing list