From 65c255ad2076027203b3c871295f26bc6d8b62fa Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 27 Apr 2018 21:41:58 +0000 Subject: Fix illegal cast in core/fxge/win32/fx_win32_gdipext.cpp Bug: pdfium:243 Change-Id: I36ebe64daa042b998878ffacfca9846b5303450b Reviewed-on: https://pdfium-review.googlesource.com/31652 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- core/fxge/win32/fx_win32_gdipext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/fxge/win32/fx_win32_gdipext.cpp b/core/fxge/win32/fx_win32_gdipext.cpp index a83a4496fe..eee6b8798a 100644 --- a/core/fxge/win32/fx_win32_gdipext.cpp +++ b/core/fxge/win32/fx_win32_gdipext.cpp @@ -1165,7 +1165,8 @@ LPVOID CGdiplusExt::LoadMemFont(LPBYTE pData, uint32_t size) { void CGdiplusExt::DeleteMemFont(LPVOID pCollection) { CGdiplusExt& GdiplusExt = ((CWin32Platform*)CFX_GEModule::Get()->GetPlatformData())->m_GdiplusExt; - CallFunc(GdipDeletePrivateFontCollection)((GpFontCollection**)&pCollection); + auto* pActualType = static_cast(pCollection); + CallFunc(GdipDeletePrivateFontCollection)(&pActualType); } bool CGdiplusExt::GdipCreateBitmap(const RetainPtr& pBitmap, void** bitmap) { -- cgit v1.2.3