From cd2715e3a47f4541b0f7c5d7c1d7b9e4b44db0cc Mon Sep 17 00:00:00 2001 From: bl0ckeduser Date: Wed, 16 Nov 2011 23:23:03 -0500 Subject: [PATCH] Win32: only use zlib if it is turned on --- win32/wsnes9x.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index 88d5deda..8f0a59ad 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -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);