GetDeviceCaps: spot yet unsupported accesses to the DeviceCaps struct.

This commit is contained in:
Marcus Meissner 2000-01-30 22:19:08 +00:00 committed by Alexandre Julliard
parent 7d43bceb7e
commit 382354e687

View file

@ -783,7 +783,11 @@ INT WINAPI GetDeviceCaps( HDC hdc, INT cap )
GDI_HEAP_UNLOCK( hdc );
return 0;
}
if (((cap>=46) && (cap<88)) || ((cap>=92) && (cap<104)))
FIXME("(%04x,%d): unsupported DeviceCaps capability, will yield 0!\n",
hdc,cap
);
TRACE("(%04x,%d): returning %d\n",
hdc, cap, *(WORD *)(((char *)dc->w.devCaps) + cap) );
ret = *(WORD *)(((char *)dc->w.devCaps) + cap);