]> git.saurik.com Git - wxWidgets.git/commit - tests/file/filetest.cpp
Fix fatal bug in the recently added wxFile::ReadAll().
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Oct 2012 22:47:44 +0000 (22:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Oct 2012 22:47:44 +0000 (22:47 +0000)
commit06a086e8d24a83391e7acaf34c31548105916a1a
treea0ee993184a22e7ef0255fd3ca8a95e9a0d066ad
parent825417a41953d63b922c4dc20076e071fd8bcc33
Fix fatal bug in the recently added wxFile::ReadAll().

Make sure we exit the loop when reading the file in chunks in
wxFile::ReadAll() and add a unit test for it to ensure that it's really
correct.

Closes #14725.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/file.cpp
tests/file/filetest.cpp