fixed stream error handling

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-06-17 10:41:40 +00:00
parent d9f9aa2d8f
commit 78c1f5f1b8

View File

@ -136,7 +136,7 @@ wxImage wxXPMDecoder::ReadFile(wxInputStream& stream)
char *p, *q;
size_t i;
if ( stream.Read(xpm_buffer, length).LastError() != wxSTREAM_NO_ERROR )
if ( stream.Read(xpm_buffer, length).LastError() == wxSTREAM_READ_ERROR )
return FALSE;
/*