GNOME Bugzilla – Bug 698563
Ensure correct error reporting when CreateDIBSection fails
Last modified: 2013-04-29 12:28:24 UTC
In gdkpixmap-win32.c: hbitmap = CreateDIBSection (hdc, (BITMAPINFO *) &bmi, iUsage, (PVOID *) &bits, NULL, 0); GDI_CALL (ReleaseDC, (hwnd, hdc)); if (hbitmap == NULL) { WIN32_GDI_FAILED ("CreateDIBSection"); g_object_unref ((GObject *) pixmap); return NULL; } If CreateDIBSection() fails, we still call ReleaseDC() before showing the error with WIN32_GDI_FAILED.
Created attachment 242131 [details] [review] Patch for the issue.
Review of attachment 242131 [details] [review]: Looks ok
Pushed.