mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
silenced compiler warnings
This commit is contained in:
parent
60f9da3926
commit
e0e8ae8673
@ -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…
Reference in New Issue
Block a user