Ticket #676: patch.txt
File patch.txt, 562 bytes (added by , 18 years ago) |
---|
Line | |
---|---|
1 | Index: mythgame/mythgame/rom_metadata.cpp |
2 | =================================================================== |
3 | --- mythgame/mythgame/rom_metadata.cpp (Revision 7909) |
4 | +++ mythgame/mythgame/rom_metadata.cpp (Arbeitskopie) |
5 | @@ -49,7 +49,7 @@ |
6 | |
7 | // Get CRC of rom data |
8 | int count; |
9 | - while ((count = unzReadCurrentFile(zf, block, 32768))) |
10 | + while ((count = unzReadCurrentFile(zf, block, 32768))>0) |
11 | { |
12 | crc = crc32(crc, (Bytef *)block, (uInt)count); |
13 | } |