fixed VC++ warning

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-12-14 12:18:49 +00:00
parent 0441833277
commit 2c0a4e08a3

View File

@@ -1005,13 +1005,11 @@ int wxImage::GetImageCount( const wxString &name, long type )
{ {
#if wxUSE_STREAMS #if wxUSE_STREAMS
wxFileInputStream stream(name); wxFileInputStream stream(name);
if (!stream.Ok()) if (stream.Ok())
return 0;
else
return GetImageCount(stream, type); return GetImageCount(stream, type);
#else
return 0;
#endif #endif
return 0;
} }
#if wxUSE_STREAMS #if wxUSE_STREAMS