https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bfa92268da37976978ed3…
commit bfa92268da37976978ed361b9c4b8399b393d1b8
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Tue Aug 2 13:25:35 2022 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Tue Aug 2 13:25:35 2022 +0900
[WIN32KNT_APITEST] Follow-up of Follow-up of #4594 (54b3b73)
CORE-11700
---
modules/rostests/apitests/win32nt/ntuser/NtUserGetKeyboardLayoutName.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/rostests/apitests/win32nt/ntuser/NtUserGetKeyboardLayoutName.c
b/modules/rostests/apitests/win32nt/ntuser/NtUserGetKeyboardLayoutName.c
index 4ffe7ac8112..00e378dcddf 100644
--- a/modules/rostests/apitests/win32nt/ntuser/NtUserGetKeyboardLayoutName.c
+++ b/modules/rostests/apitests/win32nt/ntuser/NtUserGetKeyboardLayoutName.c
@@ -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);
}