wine-staging/patches/user32-LoadKeyboardLayoutEx/0001-user32-Added-LoadKeyboardLayoutEx-stub.patch
Alistair Leslie-Hughes 15b6373d23 Fix warnings in various patchsets
Correct the warning thats issued when GetLastError wsa used for %u, changed to use the standard %lx format.
2024-01-14 09:17:25 +11:00

48 lines
1.6 KiB
Diff

From 4e0be5a53f3a87285973ca032358b81c0c3126c5 Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish@gmail.com>
Date: Mon, 1 Jul 2019 09:17:31 +1000
Subject: [PATCH] user32: Added LoadKeyboardLayoutEx stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=28170
---
dlls/user32/input.c | 9 +++++++++
dlls/user32/user32.spec | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/dlls/user32/input.c b/dlls/user32/input.c
index 8b2ae805aa..a789108a86 100644
--- a/dlls/user32/input.c
+++ b/dlls/user32/input.c
@@ -1017,6 +1017,15 @@ HKL WINAPI LoadKeyboardLayoutA(LPCSTR pwszKLID, UINT Flags)
return ret;
}
+/***********************************************************************
+ * LoadKeyboardLayoutEx (USER32.@)
+ */
+HKL WINAPI LoadKeyboardLayoutEx(DWORD unknown, const WCHAR *locale, UINT flags)
+{
+ FIXME("(%ld, %s, %x) semi-stub!\n", unknown, debugstr_w(locale), flags);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return LoadKeyboardLayoutW(locale, flags);
+}
/***********************************************************************
* UnloadKeyboardLayout (USER32.@)
diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec
index f9a4ae26df..6d70df366e 100644
--- a/dlls/user32/user32.spec
+++ b/dlls/user32/user32.spec
@@ -496,7 +496,7 @@
@ stdcall LoadImageA(long str long long long long)
@ stdcall LoadImageW(long wstr long long long long)
@ stdcall LoadKeyboardLayoutA(str long)
-# @ stub LoadKeyboardLayoutEx
+@ stdcall LoadKeyboardLayoutEx(long wstr long)
@ stdcall LoadKeyboardLayoutW(wstr long)
@ stdcall LoadLocalFonts()
@ stdcall LoadMenuA(long str)
--
2.17.1