X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/994e41cb4d8c3e6a96459d096d671d00b9504586..19311d4e7c43a3f6243bf805c164fd76cada0386:/contrib/utils/convertrc/rc2wxr.cpp?ds=sidebyside diff --git a/contrib/utils/convertrc/rc2wxr.cpp b/contrib/utils/convertrc/rc2wxr.cpp index 11eb941376..2a923d5445 100644 --- a/contrib/utils/convertrc/rc2wxr.cpp +++ b/contrib/utils/convertrc/rc2wxr.cpp @@ -675,41 +675,24 @@ return phrase; void rc2wxr::ReadChar(int &ch) - { + wxFileOffset result = m_rc.Tell(); - int result; - -result=m_rc.Tell(); - - - -if((result>=m_filesize)) - - m_done=true; - - - -result=m_rc.Read(&ch,1); + if ( result >= m_filesize ) + m_done=true; + result = m_rc.Read(&ch,1); + if ( result==wxInvalidOffset ) + m_done=true; -if((result==-1)) - - m_done=true; - - - -if(ch==EOF) - - m_done=true; - + if(ch==EOF) + m_done=true; } void rc2wxr::ParseComboBox() - { /* COMBOBOX IDC_SCALECOMBO,10,110,48,52,CBS_DROPDOWNLIST | CBS_SORT |