Merge pull request #12 from bl0ckeduser/patch-5

Win32: only use zlib if it is turned on
This commit is contained in:
OV2 2011-11-18 07:04:29 -08:00
commit 33cdfd8806

View File

@ -5104,6 +5104,7 @@ void rominfo(const TCHAR *filename, TCHAR *namebuffer, TCHAR *sizebuffer)
lstrcpy(namebuffer, ROM_ITEM_DESCNOTAVAILABLE); lstrcpy(namebuffer, ROM_ITEM_DESCNOTAVAILABLE);
lstrcpy(sizebuffer, TEXT("? Mbits")); lstrcpy(sizebuffer, TEXT("? Mbits"));
#ifdef ZLIB
if(IsCompressed(filename)) if(IsCompressed(filename))
{ {
unzFile uf = unzOpen(_tToChar(filename)); unzFile uf = unzOpen(_tToChar(filename));
@ -5143,6 +5144,7 @@ void rominfo(const TCHAR *filename, TCHAR *namebuffer, TCHAR *sizebuffer)
} }
return; return;
} }
#endif
struct _stat filestats; struct _stat filestats;
_tstat(filename, &filestats); _tstat(filename, &filestats);