From c66f5d598365b49d6b63ef0864db3826a2e2ea61 Mon Sep 17 00:00:00 2001 From: Guy Albertelli Date: Sun, 24 Jan 1999 09:59:14 +0000 Subject: [PATCH] Added stub for SetThreadLocale. --- include/windows.h | 1 + relay32/kernel32.spec | 2 +- scheduler/thread.c | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/include/windows.h b/include/windows.h index 31a0e2239cf..b7ac2b42c25 100644 --- a/include/windows.h +++ b/include/windows.h @@ -4187,6 +4187,7 @@ BOOL32 WINAPI SetStdHandle(DWORD,HANDLE32); BOOL32 WINAPI SetSystemPowerState(BOOL32,BOOL32); BOOL32 WINAPI SetSystemTime(const SYSTEMTIME*); DWORD WINAPI SetThreadAffinityMask(HANDLE32,DWORD); +BOOL32 WINAPI SetThreadLocale(LCID); BOOL32 WINAPI SetThreadPriority(HANDLE32,INT32); BOOL32 WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION); VOID WINAPI Sleep(DWORD); diff --git a/relay32/kernel32.spec b/relay32/kernel32.spec index c4d1dedaa4a..3508ab90f7e 100644 --- a/relay32/kernel32.spec +++ b/relay32/kernel32.spec @@ -687,7 +687,7 @@ init MAIN_KernelInit 668 stub SetTapePosition 669 stdcall SetThreadAffinityMask(long long) SetThreadAffinityMask 670 stub SetThreadContext -671 stub SetThreadLocale +671 stdcall SetThreadLocale(long) SetThreadLocale 672 stdcall SetThreadPriority(long long) SetThreadPriority 673 stdcall SetTimeZoneInformation(ptr) SetTimeZoneInformation 674 stdcall SetUnhandledExceptionFilter(ptr) SetUnhandledExceptionFilter diff --git a/scheduler/thread.c b/scheduler/thread.c index 2241747f290..0bbd009f7cf 100644 --- a/scheduler/thread.c +++ b/scheduler/thread.c @@ -825,3 +825,19 @@ VOID WINAPI VWin32_BoostThreadStatic( DWORD threadId, INT32 boost ) FIXME(thread, "(0x%08lx,%d): stub\n", threadId, boost); } +/********************************************************************** + * SetThreadLocale [KERNEL32.671] Sets the calling threads current locale. + * + * RETURNS + * Success: TRUE + * Failure: FALSE + * + * NOTES + * Implemented in NT only (3.1 and above according to MS + */ +BOOL32 WINAPI SetThreadLocale( + LCID lcid) /* [in] Locale identifier */ +{ + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +}