[WIN32KNT_APITEST] Follow-up of Follow-up of #4594 (54b3b73)

CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2022-08-02 13:25:35 +09:00
parent 8043706bf0
commit bfa92268da

View file

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