[PATCH] user32/tests: Fix the keyboard layout id in an ok() message.

Francois Gouget fgouget at codeweavers.com
Fri Jul 16 09:00:40 CDT 2021


The keyboard layout being tested is not the thread's default keyboard
layout.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
See also https://bugs.winehq.org/show_bug.cgi?id=51478

 dlls/user32/tests/input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c
index 654cabb76d9..08323c4f40e 100644
--- a/dlls/user32/tests/input.c
+++ b/dlls/user32/tests/input.c
@@ -3166,7 +3166,7 @@ static void test_keyboard_layout_name(void)
             swprintf( tmpklid, KL_NAMELENGTH, L"%08X", layouts_preload[j] );
             if (!wcscmp( tmpklid, klid )) break;
         }
-        ok(j < len, "Could not find keyboard layout %p in preload list\n", layout);
+        ok(j < len, "Could not find keyboard layout %s in preload list\n", wine_dbgstr_w(klid));
 
         if (id & 0x80000000)
         {
-- 
2.20.1



More information about the wine-devel mailing list