mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 06:53:00 +00:00
parent
e7846c0c67
commit
62f6e3b397
42 changed files with 2715 additions and 2715 deletions
|
@ -9,17 +9,17 @@
|
|||
|
||||
START_TEST(NtGdiEngCreatePalette)
|
||||
{
|
||||
HPALETTE hPal;
|
||||
ULONG Colors[3] = {1,2,3};
|
||||
PENTRY pEntry;
|
||||
HPALETTE hPal;
|
||||
ULONG Colors[3] = {1,2,3};
|
||||
PENTRY pEntry;
|
||||
|
||||
hPal = NtGdiEngCreatePalette(PAL_RGB, 3, Colors, 0xff000000, 0x00ff0000, 0x0000ff00);
|
||||
hPal = NtGdiEngCreatePalette(PAL_RGB, 3, Colors, 0xff000000, 0x00ff0000, 0x0000ff00);
|
||||
|
||||
ok(hPal != NULL, "hPal was NULL.\n");
|
||||
ok_int((int)GDI_HANDLE_GET_TYPE(hPal), (int)GDI_OBJECT_TYPE_PALETTE);
|
||||
pEntry = &GdiHandleTable[GDI_HANDLE_GET_INDEX(hPal)];
|
||||
ok(pEntry->einfo.pobj != NULL, "pEntry->einfo.pobj was NULL.\n");
|
||||
ok_long(pEntry->ObjectOwner.ulObj, GetCurrentProcessId());
|
||||
ok_ptr(pEntry->pUser, NULL);
|
||||
//TEST(pEntry->Type == (((UINT)hPal >> 16) | GDI_OBJECT_TYPE_PALETTE));
|
||||
ok(hPal != NULL, "hPal was NULL.\n");
|
||||
ok_int((int)GDI_HANDLE_GET_TYPE(hPal), (int)GDI_OBJECT_TYPE_PALETTE);
|
||||
pEntry = &GdiHandleTable[GDI_HANDLE_GET_INDEX(hPal)];
|
||||
ok(pEntry->einfo.pobj != NULL, "pEntry->einfo.pobj was NULL.\n");
|
||||
ok_long(pEntry->ObjectOwner.ulObj, GetCurrentProcessId());
|
||||
ok_ptr(pEntry->pUser, NULL);
|
||||
//TEST(pEntry->Type == (((UINT)hPal >> 16) | GDI_OBJECT_TYPE_PALETTE));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue