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. :-) You can view, comment on, or merge this pull request online at:
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/589
-- Commit Summary --
* Save two redundant calls of GetLastError()
-- File Changes --
M platforms/win32/vm/sqWin32Utils.c (4)
-- Patch Links --
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/589.patch https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/589.diff
vm-dev@lists.squeakfoundation.org