mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 05:52:57 +00:00
parent
e7846c0c67
commit
62f6e3b397
42 changed files with 2715 additions and 2715 deletions
|
@ -13,36 +13,36 @@ NTSTATUS
|
|||
|
||||
START_TEST(NtGdiFlushUserBatch)
|
||||
{
|
||||
PVOID pRet;
|
||||
PTEB pTeb;
|
||||
PVOID pRet;
|
||||
PTEB pTeb;
|
||||
|
||||
pNtGdiFlushUserBatch = (PVOID)GetProcAddress(g_hModule, "NtGdiFlushUserBatch");
|
||||
if (pNtGdiFlushUserBatch == NULL)
|
||||
return APISTATUS_NOT_FOUND;
|
||||
|
||||
pTeb = NtCurrentTeb();
|
||||
ok(pTeb != NULL, "pTeb was NULL.\n");
|
||||
pTeb = NtCurrentTeb();
|
||||
ok(pTeb != NULL, "pTeb was NULL.\n");
|
||||
|
||||
pRet = (PVOID)pNtGdiFlushUserBatch();
|
||||
pRet = (PVOID)pNtGdiFlushUserBatch();
|
||||
|
||||
ok(pRet != NULL, "pRet was NULL.\n");
|
||||
ok_ptr(pRet, &pTeb->RealClientId);
|
||||
ok(pRet != NULL, "pRet was NULL.\n");
|
||||
ok_ptr(pRet, &pTeb->RealClientId);
|
||||
|
||||
ok_long(pTeb->GdiBatchCount, 0);
|
||||
ok_long(pTeb->GdiTebBatch.Offset, 0);
|
||||
ok_ptr(pTeb->GdiTebBatch.HDC, NULL);
|
||||
ok_long(pTeb->GdiBatchCount, 0);
|
||||
ok_long(pTeb->GdiTebBatch.Offset, 0);
|
||||
ok_ptr(pTeb->GdiTebBatch.HDC, NULL);
|
||||
|
||||
/* Set up some bullshit */
|
||||
pTeb->InDbgPrint = 1;
|
||||
pTeb->GdiBatchCount = 12;
|
||||
pTeb->GdiTebBatch.Offset = 21;
|
||||
pTeb->GdiTebBatch.HDC = (HDC)123;
|
||||
/* Set up some bullshit */
|
||||
pTeb->InDbgPrint = 1;
|
||||
pTeb->GdiBatchCount = 12;
|
||||
pTeb->GdiTebBatch.Offset = 21;
|
||||
pTeb->GdiTebBatch.HDC = (HDC)123;
|
||||
|
||||
pRet = (PVOID)pNtGdiFlushUserBatch();
|
||||
ok_ptr(pRet, &pTeb->RealClientId);
|
||||
pRet = (PVOID)pNtGdiFlushUserBatch();
|
||||
ok_ptr(pRet, &pTeb->RealClientId);
|
||||
|
||||
ok_int(pTeb->InDbgPrint, 0);
|
||||
ok_long(pTeb->GdiBatchCount, 12);
|
||||
ok_long(pTeb->GdiTebBatch.Offset, 0);
|
||||
ok_ptr(pTeb->GdiTebBatch.HDC, NULL);
|
||||
ok_int(pTeb->InDbgPrint, 0);
|
||||
ok_long(pTeb->GdiBatchCount, 12);
|
||||
ok_long(pTeb->GdiTebBatch.Offset, 0);
|
||||
ok_ptr(pTeb->GdiTebBatch.HDC, NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue