X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18c45cd6dc74b8c37bf6e0c920cd010d3b77135b..b2c13097deb7736a86a278c02d0b3f7cd9873750:/contrib/src/deprecated/resource.cpp diff --git a/contrib/src/deprecated/resource.cpp b/contrib/src/deprecated/resource.cpp index a39d2202b4..8837544255 100644 --- a/contrib/src/deprecated/resource.cpp +++ b/contrib/src/deprecated/resource.cpp @@ -1624,7 +1624,7 @@ static bool wxEatWhiteSpace(wxInputStream *is) while (!finished) { ch = is->GetC(); - if (ch == EOF) + if (is->LastRead() == 0) return false; if (ch == '*') { @@ -1733,7 +1733,7 @@ bool wxGetResourceToken(wxInputStream *is) // Escaped characters else if (ch == '\\') { - int newCh = is->GetC(); + char newCh = is->GetC(); if (newCh == '"') actualCh = '"'; else if (newCh == 10)