Index: printing/image_win.cc |
diff --git a/printing/image_win.cc b/printing/image_win.cc |
index 1411e160d9bf2ba3ea43190520400220d07c450d..8bf36c7f8b50e477a6475c323c999e35bed9529e 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()); |