Commit 805f083f authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Add a missing release in the error path.

parent 1923e0e1
......@@ -179,6 +179,7 @@ update_format:
info->bmiHeader.biPlanes = 1;
info->bmiHeader.biBitCount = bmp->bitmap.bmBitsPixel;
if (info->bmiHeader.biHeight > 0) info->bmiHeader.biHeight = -info->bmiHeader.biHeight;
GDI_ReleaseObj( hbitmap );
return ERROR_BAD_FORMAT;
}
......
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