From 96eefd3239d1ba18c4000475c1da2f0cd590e3c8 Mon Sep 17 00:00:00 2001 From: "brettw@google.com" Date: Thu, 11 Jun 2009 20:55:38 +0000 Subject: Remove misleading comment - we no longer crash when CreateDIBSection() fails, just return null Also remove unused GetLastError() call; no error is being returned anyway. R=brettw BUG=http://crbug.com/10977 TEST=none Original review: http://codereview.chromium.org/120006 Patch by dpranke@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18195 0039d316-1c4b-4281-b951-d872f2087c98 --- skia/ext/bitmap_platform_device_win.cc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'skia') 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(&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; } -- cgit v1.1