[WIN32KNT_APITEST] Follow-up of Follow-up of #4594 (54b3b73)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Tue, 2 Aug 2022 04:25:35 +0000 (13:25 +0900)
committerKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Tue, 2 Aug 2022 04:25:35 +0000 (13:25 +0900)
CORE-11700

modules/rostests/apitests/win32nt/ntuser/NtUserGetKeyboardLayoutName.c

index 4ffe7ac..00e378d 100644 (file)
@@ -41,7 +41,7 @@ START_TEST(NtUserGetKeyboardLayoutName)
     RtlZeroMemory(szBuff, sizeof(szBuff));
     ustr.Buffer = szBuff;
     ustr.Length = 0;
-    ustr.MaximumLength = RTL_NUMBER_OF(szBuff);
+    ustr.MaximumLength = RTL_NUMBER_OF(szBuff) * sizeof(WCHAR);
     ret = bHung = FALSE;
     _SEH2_TRY
     {
@@ -56,4 +56,5 @@ START_TEST(NtUserGetKeyboardLayoutName)
     ok_int(bHung, FALSE);
     ok_int(ret, TRUE);
     ok(szBuff[0] != 0, "szBuff[0] was %d\n", szBuff[0]);
+    trace("szBuff: %S\n", szBuff);
 }