Simon Kissane : kernel32: Added SetThreadUILanguage() stub.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 21 08:02:17 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: fe70078a5b8d7a29d37b2e8847708c30dc8bb91d
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=fe70078a5b8d7a29d37b2e8847708c30dc8bb91d
Author: Simon Kissane <skissane at gmail.com>
Date: Sun Jun 11 10:53:58 2006 +1000
kernel32: Added SetThreadUILanguage() stub.
---
dlls/kernel/kernel32.spec | 2 +-
dlls/kernel/locale.c | 21 +++++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel/kernel32.spec b/dlls/kernel/kernel32.spec
index 4de17a9..7369b59 100644
--- a/dlls/kernel/kernel32.spec
+++ b/dlls/kernel/kernel32.spec
@@ -1032,7 +1032,7 @@ # @ stub SetLocalPrimaryComputerNameW
@ stdcall SetThreadLocale(long)
@ stdcall SetThreadPriority(long long)
@ stdcall SetThreadPriorityBoost(long long)
-# @ stub SetThreadUILanguage
+@ stdcall SetThreadUILanguage(long)
@ stdcall SetTimeZoneInformation(ptr)
@ stub SetTimerQueueTimer
@ stdcall SetUnhandledExceptionFilter(ptr)
diff --git a/dlls/kernel/locale.c b/dlls/kernel/locale.c
index beb5bbd..ae50f07 100644
--- a/dlls/kernel/locale.c
+++ b/dlls/kernel/locale.c
@@ -1717,6 +1717,27 @@ BOOL WINAPI SetThreadLocale( LCID lcid )
return TRUE;
}
+/**********************************************************************
+ * SetThreadUILanguage (KERNEL32.@)
+ *
+ * Set the current threads UI language.
+ *
+ * PARAMS
+ * langid [I] LANGID of the language to set, or 0 to use
+ * the available language which is best supported
+ * for console applications
+ *
+ * RETURNS
+ * Success: The return value is the same as the input value.
+ * Failure: The return value differs from the input value.
+ * Use GetLastError() to determine the cause.
+ */
+LANGID WINAPI SetThreadUILanguage( LANGID langid )
+{
+ TRACE("(0x%04x) stub - returning success\n", langid);
+ return langid;
+}
+
/******************************************************************************
* ConvertDefaultLocale (KERNEL32.@)
*
More information about the wine-cvs
mailing list