Fix code reading from the pipe stream in exec sample.
We must be reading bytes, not (wide) characters. Closes #13290. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1470,8 +1470,8 @@ void MyPipeFrame::DoGetFromStream(wxTextCtrl *text, wxInputStream& in)
|
||||
{
|
||||
while ( in.CanRead() )
|
||||
{
|
||||
wxChar buffer[4096];
|
||||
buffer[in.Read(buffer, WXSIZEOF(buffer) - 1).LastRead()] = wxT('\0');
|
||||
char buffer[4096];
|
||||
buffer[in.Read(buffer, WXSIZEOF(buffer) - 1).LastRead()] = '\0';
|
||||
|
||||
text->AppendText(buffer);
|
||||
}
|
||||
|
Reference in New Issue
Block a user