mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[KMTESTS:MM]
Check the first byte is really null, in spite of the hack writing. CORE-11819 CORE-12475 svn path=/trunk/; revision=73392
This commit is contained in:
@@ -404,7 +404,8 @@ TestIrpHandler(
|
||||
{
|
||||
Fcb = IoStack->FileObject->FsContext;
|
||||
ok(Fcb != NULL, "Null pointer!\n");
|
||||
if (IoStack->FileObject->PrivateCacheMap != NULL)
|
||||
if (IoStack->FileObject->SectionObjectPointer != NULL &&
|
||||
IoStack->FileObject->SectionObjectPointer->SharedCacheMap != NULL)
|
||||
{
|
||||
CcFlushCache(&Fcb->SectionObjectPointers, NULL, 0, NULL);
|
||||
CcPurgeCacheSection(&Fcb->SectionObjectPointers, NULL, 0, FALSE);
|
||||
|
||||
@@ -53,6 +53,7 @@ START_TEST(NtCreateSection)
|
||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||
|
||||
KmtStartSeh();
|
||||
ok(((PCHAR)Buffer)[0] == 0, "First byte is not null! %x", ((PCHAR)Buffer)[0]);
|
||||
memset(Buffer, 0xBA, 512);
|
||||
KmtEndSeh(STATUS_SUCCESS);
|
||||
|
||||
@@ -78,6 +79,7 @@ START_TEST(NtCreateSection)
|
||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||
|
||||
KmtStartSeh();
|
||||
ok(((PCHAR)Buffer)[0] == 0, "First byte is not null! %x", ((PCHAR)Buffer)[0]);
|
||||
memset(Buffer, 0xBA, 4096);
|
||||
KmtEndSeh(STATUS_SUCCESS);
|
||||
|
||||
@@ -103,6 +105,7 @@ START_TEST(NtCreateSection)
|
||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||
|
||||
KmtStartSeh();
|
||||
ok(((PCHAR)Buffer)[0] == 0, "First byte is not null! %x", ((PCHAR)Buffer)[0]);
|
||||
memset(Buffer, 0xBA, 512);
|
||||
KmtEndSeh(STATUS_SUCCESS);
|
||||
|
||||
@@ -128,6 +131,7 @@ START_TEST(NtCreateSection)
|
||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||
|
||||
KmtStartSeh();
|
||||
ok(((PCHAR)Buffer)[0] == 0, "First byte is not null! %x", ((PCHAR)Buffer)[0]);
|
||||
memset(Buffer, 0xBA, 4096);
|
||||
KmtEndSeh(STATUS_SUCCESS);
|
||||
|
||||
@@ -165,6 +169,7 @@ START_TEST(NtCreateSection)
|
||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||
|
||||
KmtStartSeh();
|
||||
ok(((PCHAR)Buffer)[0] == 0, "First byte is not null! %x", ((PCHAR)Buffer)[0]);
|
||||
memset(Buffer, 0xBA, 512);
|
||||
KmtEndSeh(STATUS_SUCCESS);
|
||||
|
||||
@@ -190,6 +195,7 @@ START_TEST(NtCreateSection)
|
||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||
|
||||
KmtStartSeh();
|
||||
ok(((PCHAR)Buffer)[0] == 0, "First byte is not null! %x", ((PCHAR)Buffer)[0]);
|
||||
memset(Buffer, 0xBA, 4096);
|
||||
KmtEndSeh(STATUS_SUCCESS);
|
||||
|
||||
@@ -215,6 +221,7 @@ START_TEST(NtCreateSection)
|
||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||
|
||||
KmtStartSeh();
|
||||
ok(((PCHAR)Buffer)[0] == 0, "First byte is not null! %x", ((PCHAR)Buffer)[0]);
|
||||
memset(Buffer, 0xBA, 512);
|
||||
KmtEndSeh(STATUS_SUCCESS);
|
||||
|
||||
@@ -240,6 +247,7 @@ START_TEST(NtCreateSection)
|
||||
ok_eq_hex(Status, STATUS_SUCCESS);
|
||||
|
||||
KmtStartSeh();
|
||||
ok(((PCHAR)Buffer)[0] == 0, "First byte is not null! %x", ((PCHAR)Buffer)[0]);
|
||||
memset(Buffer, 0xBA, 4096);
|
||||
KmtEndSeh(STATUS_SUCCESS);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user