From 45e12c7cd38bc1470be6626ffc1d5b1d15d9f240 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Thu, 29 Jul 2010 16:54:01 +1000 Subject: [PATCH] runtime: fix bug introduced in revision 4a01b8d28570 R=rsc CC=golang-dev https://golang.org/cl/1874046 --- src/pkg/runtime/windows/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/runtime/windows/thread.c b/src/pkg/runtime/windows/thread.c index 7522d26433..f18d960a7e 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;