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:
parent
d9f9aa2d8f
commit
78c1f5f1b8
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user