kernel32: add a stub for SetThreadPreferredUILanguages
Austin English
austinenglish at gmail.com
Sat Apr 23 17:40:56 CDT 2011
http://bugs.winehq.org/show_bug.cgi?id=26788
--
-Austin
-------------- next part --------------
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index b3b8fd5..2667b8d 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -1078,6 +1078,7 @@
@ stdcall SetThreadExecutionState(long)
@ stdcall SetThreadIdealProcessor(long long)
@ stdcall SetThreadLocale(long)
+@ stdcall SetThreadPreferredUILanguages(long ptr ptr)
@ stdcall SetThreadPriority(long long)
@ stdcall SetThreadPriorityBoost(long long)
@ stdcall SetThreadUILanguage(long)
diff --git a/dlls/kernel32/thread.c b/dlls/kernel32/thread.c
index bddf37d..3b91936 100644
--- a/dlls/kernel32/thread.c
+++ b/dlls/kernel32/thread.c
@@ -806,3 +806,13 @@ BOOL WINAPI GetThreadIOPendingFlag( HANDLE thread, PBOOL io_pending )
*io_pending = FALSE;
return TRUE;
}
+
+/***********************************************************************
+ * SetThreadPreferredUILanguages (KERNEL32.@)
+ */
+BOOL WINAPI SetThreadPreferredUILanguages( DWORD dwFlags, PCZZWSTR pwszLanguagesBuffer, PULONG pulNumLanguages )
+{
+ FIXME("%u, %p, %p\n", dwFlags, pwszLanguagesBuffer, pulNumLanguages);
+ return TRUE;
+}
+
diff --git a/include/winnt.h b/include/winnt.h
index d3df022..62d5f80 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -422,6 +422,8 @@ typedef WCHAR *PWCH, *LPWCH;
typedef const WCHAR *PCWCH, *LPCWCH;
typedef WCHAR *PWSTR, *LPWSTR, *NWPSTR;
typedef const WCHAR *PCWSTR, *LPCWSTR;
+typedef WCHAR *PZZWSTR;
+typedef const WCHAR *PCZZWSTR;
/* Neutral character and string types */
/* These are only defined for Winelib, i.e. _not_ defined for
More information about the wine-patches
mailing list