Win32: only use zlib if it is turned on

This commit is contained in:
bl0ckeduser 2011-11-16 23:23:03 -05:00
parent 2e275c4599
commit cd2715e3a4
1 changed files with 2 additions and 0 deletions

View File

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