if (CaretInfo->Bitmap)
{
- if (!NtGdiGetBitmapDimension(CaretInfo->Bitmap, &CaretInfo->Size))
+ if (!GreGetBitmapDimension(CaretInfo->Bitmap, &CaretInfo->Size))
{
ERR("Failed to get bitmap dimensions\n");
- return;
+ goto cleanup;
}
hdcMem = NtGdiCreateCompatibleDC(hdc);
DSTINVERT);
}
+cleanup:
if (pWnd->hrgnUpdate)
{
NtGdiRestoreDC(hdc, -1);