Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / ui / gfx / platform_font_win.cc
index a4505a3..f699e26 100644 (file)
@@ -180,9 +180,9 @@ std::string PlatformFontWin::GetLocalizedFontName() const {
 
   // When a font has a localized name for a language matching the system
   // locale, GetTextFace() returns the localized name.
-  base::win::ScopedSelectObject font(memory_dc, font_ref_->hfont());
+  base::win::ScopedSelectObject font(memory_dc.Get(), font_ref_->hfont());
   wchar_t localized_font_name[LF_FACESIZE];
-  int length = GetTextFace(memory_dc, arraysize(localized_font_name),
+  int length = GetTextFace(memory_dc.Get(), arraysize(localized_font_name),
                            &localized_font_name[0]);
   if (length <= 0)
     return GetFontName();