mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:06:04 +00:00
[NTDLL_APITEST]
- Gracefully handle failures in NtMapViewOfSection test. CORE-9189 - Correctly handle unterminated strings in NtQueryKey test. Powered by DPH. svn path=/trunk/; revision=67370
This commit is contained in:
parent
e5533bb915
commit
bccac1a15b
2 changed files with 59 additions and 8 deletions
|
@ -51,8 +51,9 @@ Test_KeyNameInformation(void)
|
|||
ok_size_t(InfoLength, FIELD_OFFSET(KEY_NAME_INFORMATION, Name[HKLM_Name.Length/sizeof(WCHAR)]));
|
||||
ok_size_t(NameInformation->NameLength, HKLM_Name.Length);
|
||||
|
||||
RtlInitUnicodeString(&InfoName, NameInformation->Name);
|
||||
InfoName.Buffer = NameInformation->Name;
|
||||
InfoName.Length = NameInformation->NameLength;
|
||||
InfoName.MaximumLength = NameInformation->NameLength;
|
||||
ok(RtlCompareUnicodeString(&InfoName, &HKLM_Name, TRUE) == 0, "%.*S\n",
|
||||
InfoName.Length, InfoName.Buffer);
|
||||
|
||||
|
@ -82,8 +83,9 @@ Test_KeyNameInformation(void)
|
|||
ok_size_t(InfoLength, FIELD_OFFSET(KEY_NAME_INFORMATION, Name[HKLM_Software_Name.Length/sizeof(WCHAR)]));
|
||||
ok_size_t(NameInformation->NameLength, HKLM_Software_Name.Length);
|
||||
|
||||
RtlInitUnicodeString(&InfoName, NameInformation->Name);
|
||||
InfoName.Buffer = NameInformation->Name;
|
||||
InfoName.Length = NameInformation->NameLength;
|
||||
InfoName.MaximumLength = NameInformation->NameLength;
|
||||
ok(RtlCompareUnicodeString(&InfoName, &HKLM_Software_Name, TRUE) == 0, "%.*S\n",
|
||||
InfoName.Length, InfoName.Buffer);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue