gdi32: Add a missing release in the error path.
This commit is contained in:
parent
1923e0e159
commit
805f083f34
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue