mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
[GDI32]
CORE-8350 #comment Fix return value on error in RealizePalette. #resolve svn path=/trunk/; revision=66171
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user