Index: xfa/fgas/font/fgas_fontutils.cpp |
diff --git a/xfa/fgas/font/fgas_fontutils.cpp b/xfa/fgas/font/fgas_fontutils.cpp |
index 12271fbb64b17715576e7791a6c7e076d69ecd6a..21d5d0b5a5a1be1a4b901b209be16f9c0db24097 100644 |
--- a/xfa/fgas/font/fgas_fontutils.cpp |
+++ b/xfa/fgas/font/fgas_fontutils.cpp |
@@ -42,7 +42,7 @@ uint32_t FGAS_GetFontFamilyHash(const FX_WCHAR* pszFontFamily, |
wsFont += L"Italic"; |
} |
wsFont += wCodePage; |
- return FX_HashCode_String_GetW(wsFont.c_str(), wsFont.GetLength()); |
+ return FX_HashCode_GetW(wsFont.AsStringC(), false); |
} |
static const FGAS_FONTUSB g_FXGdiFontUSBTable[] = { |
{0x0000, 0x007F, 0, 1252}, {0x0080, 0x00FF, 1, 1252}, |