mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[W32KNAPI]
Load NtGdiFlushUserBatch dynamically to allow loading on Win 2003, where the function does not exist. ROSTESTS-131 #resolve svn path=/trunk/; revision=66172
This commit is contained in:
parent
2efb302756
commit
23a57a334f
1 changed files with 11 additions and 2 deletions
|
@ -1,14 +1,23 @@
|
|||
|
||||
|
||||
NTSTATUS
|
||||
(NTAPI
|
||||
*pNtGdiFlushUserBatch)(VOID);
|
||||
|
||||
INT
|
||||
Test_NtGdiFlushUserBatch(PTESTINFO pti)
|
||||
{
|
||||
PVOID pRet;
|
||||
PTEB pTeb;
|
||||
|
||||
pNtGdiFlushUserBatch = (PVOID)GetProcAddress(g_hModule, "NtGdiFlushUserBatch");
|
||||
if (pNtGdiFlushUserBatch == NULL)
|
||||
return APISTATUS_NOT_FOUND;
|
||||
|
||||
pTeb = NtCurrentTeb();
|
||||
ASSERT(pTeb);
|
||||
|
||||
pRet = (PVOID)NtGdiFlushUserBatch();
|
||||
pRet = (PVOID)pNtGdiFlushUserBatch();
|
||||
|
||||
TEST(pRet != 0);
|
||||
TEST(pRet == &pTeb->RealClientId);
|
||||
|
@ -23,7 +32,7 @@ Test_NtGdiFlushUserBatch(PTESTINFO pti)
|
|||
pTeb->GdiTebBatch.Offset = 21;
|
||||
pTeb->GdiTebBatch.HDC = (HDC)123;
|
||||
|
||||
pRet = (PVOID)NtGdiFlushUserBatch();
|
||||
pRet = (PVOID)pNtGdiFlushUserBatch();
|
||||
TEST(pRet == &pTeb->RealClientId);
|
||||
|
||||
TEST(pTeb->InDbgPrint == 0);
|
||||
|
|
Loading…
Reference in a new issue