Save the Win32 error code where necessary
authorSimon Marlow <simonmar@microsoft.com>
Fri, 26 Jan 2007 16:26:20 +0000 (16:26 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 26 Jan 2007 16:26:20 +0000 (16:26 +0000)
commit911b42b27ad5f039465d14052460e2d9dde053ab
treeac02d1c9aff17dbc366424d8e2073f10a1fdebdb
parent00029a41e51fceb8aa4bfdf86170be036b35d497
Save the Win32 error code where necessary
Similarly to the way we save errno across context switches and
suspendThread/resumeThread, we must save and restore the Win32 error
code via GetLastError()/SetLastError().  Fixes #896.
includes/TSO.h
rts/Schedule.c