Fix string iteration logic in wxFTP::Pwd()

wxString iterators can't be dereferenced once they reach the end of the
string, so compare them with end rather than checking if the value they point
to is non-NUL.

This makes wxFTP::Pwd() actually work, which was apparently broken since quite
some time (perhaps ever since c9f7896861 9+
years ago).

Closes #17679.
This commit is contained in:
Vadim Zeitlin
2016-09-25 01:20:41 +02:00
parent 461d0b2005
commit d0c57dbef0
3 changed files with 17 additions and 7 deletions

View File

@@ -422,4 +422,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>