summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Brainman <alex.brainman@gmail.com>2010-07-29 16:54:01 +1000
committerAlex Brainman <alex.brainman@gmail.com>2010-07-29 16:54:01 +1000
commit091c23433e0d0a68d6900ba3a5ac56514cdffa20 (patch)
tree8048c85c011862a9cd36f00930e54447ab913530 /src
parentc021d8dc4738e3f2103b20c570195d6bcae87cde (diff)
downloadgo-091c23433e0d0a68d6900ba3a5ac56514cdffa20.tar.gz
runtime: fix bug introduced in revision 4a01b8d28570
R=rsc CC=golang-dev http://codereview.appspot.com/1874046 Committer: Alex Brainman <alex.brainman@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/pkg/runtime/windows/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/windows/thread.c b/src/pkg/runtime/windows/thread.c
index 7522d2643..f18d960a7 100644
--- a/src/pkg/runtime/windows/thread.c
+++ b/src/pkg/runtime/windows/thread.c
@@ -287,7 +287,7 @@ void
call_syscall(void *args)
{
StdcallParams *p = (StdcallParams*)args;
- stdcall_raw(SetLastError, 1, 0);
+ stdcall_raw(SetLastError, 0);
p->r = (uintptr)stdcall_raw((void*)p->fn, p->args[0], p->args[1], p->args[2], p->args[3], p->args[4], p->args[5], p->args[6], p->args[7], p->args[8], p->args[9], p->args[10], p->args[11]);
p->err = (uintptr)stdcall_raw(GetLastError);
return;