mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 17:56:06 +00:00
[GDI32]
CORE-8350 #comment Fix return value on error in RealizePalette. #resolve svn path=/trunk/; revision=66171
This commit is contained in:
parent
af6093b4a5
commit
2efb302756
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue