opensmalltalk-vm icon indicating copy to clipboard operation
opensmalltalk-vm copied to clipboard

Windows: Save two redundant calls of `GetLastError()`

Open LinqLover opened this issue 2 years ago • 0 comments

Assuming there was an error during printing (wvsprintf) inside of vprintLastError(), the second call could have returned a different error code than expected.

Apart from that, to me, it looks to be an idiom to call GetLastError() only once per error. In every case, printing errors now should be a tiny little bit faster. :-)

LinqLover avatar Aug 30 '21 22:08 LinqLover