Commit 013f5a9b authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Return the correct error code when selecting objects in a metafile.

parent 5267c131
......@@ -284,7 +284,7 @@ HBRUSH MFDRV_SelectBrush( PHYSDEV dev, HBRUSH hbrush )
return 0;
GDI_hdc_using_object(hbrush, dev->hdc);
}
return MFDRV_SelectObject( dev, index ) ? hbrush : HGDI_ERROR;
return MFDRV_SelectObject( dev, index ) ? hbrush : 0;
}
/******************************************************************
......@@ -408,7 +408,7 @@ HPEN MFDRV_SelectPen( PHYSDEV dev, HPEN hpen )
return 0;
GDI_hdc_using_object(hpen, dev->hdc);
}
return MFDRV_SelectObject( dev, index ) ? hpen : HGDI_ERROR;
return MFDRV_SelectObject( dev, index ) ? hpen : 0;
}
......
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