Home » U++ Library support » U++ Core » LocalProcess trivia bug in Write() function causing incorrect error strings
LocalProcess trivia bug in Write() function causing incorrect error strings [message #44191] |
Tue, 20 January 2015 23:00 |
hans
Messages: 44 Registered: March 2006 Location: Germany
|
Member |
|
|
Line 518 ff:
for(int wn = 0; ret && wn < s.GetLength(); wn += n) {
ret = WriteFile(hInputWrite, ~s + wn, s.GetLength(), &n, NULL);
String ho = wreso;
String he = wrese;
wreso = wrese = Null;
Read2(wreso, wrese);
wreso = ho + wreso;
wrese = ho + wrese;
}
obviously last line should be wrese = he + wrese;
Same on line 538.
And I even don't understand why it was coded this way, it seems dangerous to give member variables (wreso, wrese) as parameters to the member function.
But perhaps there is a good reason for
[Updated on: Tue, 20 January 2015 23:02] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Apr 29 17:29:29 CEST 2024
Total time taken to generate the page: 0.03192 seconds
|