mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-28 04:25:34 +00:00
Merge pull request #409 from thefarcry118/master
silenced compiler warnings (unused unsigned size_it)
This commit is contained in:
commit
02e65c39ce
@ -44,9 +44,9 @@ BlockDevice *constructBlockDevice(const char *filename)
|
||||
// Check for CISO
|
||||
FILE *f = fopen(filename, "rb");
|
||||
char buffer[4];
|
||||
fread(buffer, 1, 4, f);
|
||||
auto size = fread(buffer, 1, 4, f); //size_t
|
||||
fclose(f);
|
||||
if (!memcmp(buffer, "CISO", 4))
|
||||
if (!memcmp(buffer, "CISO", 4) && size == 4)
|
||||
return new CISOFileBlockDevice(filename);
|
||||
else
|
||||
return new FileBlockDevice(filename);
|
||||
|
Loading…
x
Reference in New Issue
Block a user