mirror of
https://github.com/reactos/reactos.git
synced 2024-11-02 12:53:33 +00:00
d55028d26f
svn path=/trunk/; revision=33818
19 lines
408 B
C
19 lines
408 B
C
|
|
INT
|
|
Test_NtGdiDdCreateDirectDrawObject(PTESTINFO pti)
|
|
{
|
|
HANDLE hDirectDraw;
|
|
HDC hdc = CreateDCW(L"DISPLAY",NULL,NULL,NULL);
|
|
ASSERT(hdc != NULL);
|
|
|
|
/* Test ReactX */
|
|
RTEST(NtGdiDdCreateDirectDrawObject(NULL) == NULL);
|
|
RTEST((hDirectDraw=NtGdiDdCreateDirectDrawObject(hdc)) != NULL);
|
|
|
|
/* Cleanup ReactX setup */
|
|
DeleteDC(hdc);
|
|
NtGdiDdDeleteDirectDrawObject(hDirectDraw);
|
|
|
|
return APISTATUS_NORMAL;
|
|
}
|