summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--skia/ext/bitmap_platform_device_win.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/skia/ext/bitmap_platform_device_win.cc b/skia/ext/bitmap_platform_device_win.cc
index fb39148..ecd609f 100644
--- a/skia/ext/bitmap_platform_device_win.cc
+++ b/skia/ext/bitmap_platform_device_win.cc
@@ -199,13 +199,7 @@ BitmapPlatformDeviceWin* BitmapPlatformDeviceWin::create(
reinterpret_cast<BITMAPINFO*>(&hdr), 0,
&data,
shared_section, 0);
-
- // If we run out of GDI objects or some other error occurs, we won't get a
- // bitmap here. This will cause us to crash later because the data pointer is
- // NULL. To make sure that we can assign blame for those crashes to this code,
- // we deliberately crash here, even in release mode.
if (!hbitmap) {
- DWORD error = GetLastError();
return NULL;
}