Index: content/browser/renderer_host/pepper/pepper_truetype_font_list_win.cc |
diff --git a/content/browser/renderer_host/pepper/pepper_truetype_font_list_win.cc b/content/browser/renderer_host/pepper/pepper_truetype_font_list_win.cc |
index 8e2759040812842861c759f7d252d5c6d5142a01..158d8ea9de104e7b5df86c90c1a13ef518592f8c 100644 |
--- a/content/browser/renderer_host/pepper/pepper_truetype_font_list_win.cc |
+++ b/content/browser/renderer_host/pepper/pepper_truetype_font_list_win.cc |
@@ -63,7 +63,7 @@ void GetFontFamilies_SlowBlocking(FontFamilyList* font_families) { |
memset(&logfont, 0, sizeof(logfont)); |
logfont.lfCharSet = DEFAULT_CHARSET; |
base::win::ScopedCreateDC hdc(::CreateCompatibleDC(NULL)); |
- ::EnumFontFamiliesExW(hdc, |
+ ::EnumFontFamiliesExW(hdc.Get(), |
&logfont, |
(FONTENUMPROCW) & EnumFontFamiliesProc, |
(LPARAM)font_families, |
@@ -78,7 +78,7 @@ void GetFontsInFamily_SlowBlocking(const std::string& family, |
base::string16 family16 = base::UTF8ToUTF16(family); |
memcpy(&logfont.lfFaceName, &family16[0], sizeof(logfont.lfFaceName)); |
base::win::ScopedCreateDC hdc(::CreateCompatibleDC(NULL)); |
- ::EnumFontFamiliesExW(hdc, |
+ ::EnumFontFamiliesExW(hdc.Get(), |
&logfont, |
(FONTENUMPROCW) & EnumFontsInFamilyProc, |
(LPARAM)fonts_in_family, |