mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
d55028d26f
svn path=/trunk/; revision=33818
20 lines
515 B
C
20 lines
515 B
C
|
|
INT
|
|
Test_NtGdiDdDeleteDirectDrawObject(PTESTINFO pti)
|
|
{
|
|
HANDLE hDirectDraw;
|
|
HDC hdc = CreateDCW(L"DISPLAY",NULL,NULL,NULL);
|
|
ASSERT(hdc != NULL);
|
|
|
|
/* Test ReactX */
|
|
RTEST(NtGdiDdDeleteDirectDrawObject(NULL) == FALSE);
|
|
RTEST((hDirectDraw=NtGdiDdCreateDirectDrawObject(hdc)) != NULL);
|
|
ASSERT(hDirectDraw != NULL);
|
|
RTEST(NtGdiDdDeleteDirectDrawObject(hDirectDraw) == TRUE);
|
|
|
|
/* Cleanup ReactX setup */
|
|
DeleteDC(hdc);
|
|
Syscall(L"NtGdiDdDeleteDirectDrawObject", 1, &hDirectDraw);
|
|
|
|
return APISTATUS_NORMAL;
|
|
}
|