Skip to content

Commit

Permalink
issue 1262131 ignoring bytes read
Browse files Browse the repository at this point in the history
Should silence a bunch of warnings without altering code logic
  • Loading branch information
Paxxi committed Feb 19, 2015
1 parent 01e322c commit 6aab73c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xbmc/guilib/XBTFReader.cpp
Expand Up @@ -31,16 +31,16 @@
#include "PlatformDefs.h"

#define READ_STR(str, size, file) \
if (!fread(str, size, 1, file)) \
if (1 != fread(str, size, 1, file)) \
return false;

#define READ_U32(i, file) \
if (!fread(&i, 4, 1, file)) \
if (1 != fread(&i, 4, 1, file)) \
return false; \
i = Endian_SwapLE32(i);

#define READ_U64(i, file) \
if (!fread(&i, 8, 1, file)) \
if (1 != fread(&i, 8, 1, file)) \
return false; \
i = Endian_SwapLE64(i);

Expand Down

0 comments on commit 6aab73c

Please sign in to comment.