From: Daniel Jelinski Subject: ntdll: add missing parameters to syscall call Message-Id: Date: Tue, 29 May 2012 22:03:26 +0200 From 36f6e4c1a0fc27fbb350fea232840f0ae3514580 Mon Sep 17 00:00:00 2001 From: Daniel Jelinski Date: Tue, 29 May 2012 21:49:35 +0200 Subject: ntdll: add missing parameters to syscall call Somehow patch sent to wine-patches: http://www.winehq.org/pipermail/wine-patches/2012-May/114312.html evolved into: http://source.winehq.org/git/wine.git/commit/979099a441682c99ee0c1ee1fab5e1de635a579c Unfortunately the committed version writes garbage all over the memory, which caused bug 30766. --- dlls/ntdll/thread.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c index 881d961..8f8fdcf 100644 --- a/dlls/ntdll/thread.c +++ b/dlls/ntdll/thread.c @@ -1188,7 +1188,7 @@ ULONG WINAPI NtGetCurrentProcessorNumber(void) ULONG processor; #if defined(__linux__) && defined(__NR_getcpu) - int res = syscall(__NR_getcpu, &processor); + int res = syscall(__NR_getcpu, &processor, NULL, NULL); if (res != -1) return processor; #endif -- 1.7.5.4