[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:
Thomas Faber 2015-04-23 18:41:08 +00:00
parent e5533bb915
commit bccac1a15b
2 changed files with 59 additions and 8 deletions

View file

@ -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);