| Index: ui/gfx/icon_util.cc
|
| diff --git a/ui/gfx/icon_util.cc b/ui/gfx/icon_util.cc
|
| index f9758d39f67626b02bf8a1f470ff8338452ed793..0b6fdf9f2dcbd2da497a6a23b556ee73503670cc 100644
|
| --- a/ui/gfx/icon_util.cc
|
| +++ b/ui/gfx/icon_util.cc
|
| @@ -340,7 +340,7 @@ HICON IconUtil::CreateCursorFromDIB(const gfx::Size& icon_size,
|
| 0));
|
| if (dib_size > 0) {
|
| SetDIBits(0,
|
| - bitmap_handle,
|
| + bitmap_handle.get(),
|
| 0,
|
| icon_size.height(),
|
| dib_bits,
|
| @@ -349,7 +349,7 @@ HICON IconUtil::CreateCursorFromDIB(const gfx::Size& icon_size,
|
| }
|
|
|
| HBITMAP old_bitmap = reinterpret_cast<HBITMAP>(
|
| - SelectObject(working_dc.Get(), bitmap_handle));
|
| + SelectObject(working_dc.Get(), bitmap_handle.get()));
|
| SetBkMode(working_dc.Get(), TRANSPARENT);
|
| SelectObject(working_dc.Get(), old_bitmap);
|
|
|
| @@ -363,8 +363,8 @@ HICON IconUtil::CreateCursorFromDIB(const gfx::Size& icon_size,
|
| ii.fIcon = FALSE;
|
| ii.xHotspot = hotspot.x();
|
| ii.yHotspot = hotspot.y();
|
| - ii.hbmMask = mask;
|
| - ii.hbmColor = bitmap_handle;
|
| + ii.hbmMask = mask.get();
|
| + ii.hbmColor = bitmap_handle.get();
|
|
|
| return CreateIconIndirect(&ii);
|
| }
|
|
|