CORE-8350 #comment Fix return value on error in RealizePalette. #resolve

svn path=/trunk/; revision=66171
This commit is contained in:
Timo Kreuzer 2015-02-05 09:35:54 +00:00
parent af6093b4a5
commit 2efb302756

View file

@ -139,6 +139,12 @@ RealizePalette(
_In_ HDC hdc) /* [in] Handle of device context */
{
HANDLE_METADC0P(UINT, RealizePalette, GDI_ERROR, hdc);
if (GDI_HANDLE_GET_TYPE(hdc) != GDILoObjType_LO_DC_TYPE)
{
return GDI_ERROR;
}
return UserRealizePalette(hdc);
}