diff --git a/src/common/image.cpp b/src/common/image.cpp index f009a4c6fb..9bbe8c282b 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -1005,13 +1005,10 @@ int wxImage::GetImageCount( const wxString &name, long type ) { #if wxUSE_STREAMS wxFileInputStream stream(name); - if (!stream.Ok()) - return 0; - else + if (stream.Ok()) return GetImageCount(stream, type); -#else - return 0; #endif + return 0; } #if wxUSE_STREAMS