projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e576ba5
)
fix bug in GetLastError/SetLastError patch
author
Simon Marlow
<simonmar@microsoft.com>
Mon, 29 Jan 2007 12:45:59 +0000
(12:45 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Mon, 29 Jan 2007 12:45:59 +0000
(12:45 +0000)
rts/Schedule.c
patch
|
blob
|
history
diff --git
a/rts/Schedule.c
b/rts/Schedule.c
index
a7a0f33
..
b405759
100644
(file)
--- a/
rts/Schedule.c
+++ b/
rts/Schedule.c
@@
-643,7
+643,7
@@
run_thread:
t->saved_errno = errno;
#if mingw32_HOST_OS
// Similarly for Windows error code
- SetLastError(t->saved_winerror);
+ t->saved_winerror = GetLastError();
#endif
#if defined(THREADED_RTS)