Commit 13de9b35 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

WORD is unsigned, so we need to transalte 0xffff into -1.

parent 83f52d11
......@@ -837,6 +837,9 @@ INT WINAPI GetDeviceCaps( HDC hdc, INT cap )
FIXME("(%04x,%d): unsupported DeviceCaps capability, will yield 0!\n",
hdc,cap );
ret = *(WORD *)(((char *)dc->w.devCaps) + cap);
if ((cap == NUMCOLORS) && (ret == 0xffff))
ret = -1;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment