Index: printing/image_win.cc |
diff --git a/printing/image_win.cc b/printing/image_win.cc |
index 398fb221c4c97a6636ff6faa6ac8a12a1b14511c..1584efb1a72be7f4502cd6829fd46476de1a05b7 100644 |
--- a/printing/image_win.cc |
+++ b/printing/image_win.cc |
@@ -70,8 +70,8 @@ bool Image::LoadMetafile(const Metafile& metafile) { |
base::win::ScopedBitmap bitmap( |
::CreateDIBSection(hdc.Get(), reinterpret_cast<BITMAPINFO*>(&hdr), 0, |
reinterpret_cast<void**>(&bits), NULL, 0)); |
- DCHECK(bitmap); |
- base::win::ScopedSelectObject select_object(hdc.Get(), bitmap); |
+ DCHECK(bitmap.is_valid()); |
+ base::win::ScopedSelectObject select_object(hdc.Get(), bitmap.get()); |
skia::InitializeDC(hdc.Get()); |