summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-04-27 21:41:58 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-27 21:41:58 +0000
commit65c255ad2076027203b3c871295f26bc6d8b62fa (patch)
tree8024105f8fbab6b2d46fdeca1db8bf7f69f342c9 /core
parent1279579430dfd1e57c1df05605535876d402be49 (diff)
downloadpdfium-65c255ad2076027203b3c871295f26bc6d8b62fa.tar.xz
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 <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/fxge/win32/fx_win32_gdipext.cpp3
1 files changed, 2 insertions, 1 deletions
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<GpFontCollection*>(pCollection);
+ CallFunc(GdipDeletePrivateFontCollection)(&pActualType);
}
bool CGdiplusExt::GdipCreateBitmap(const RetainPtr<CFX_DIBitmap>& pBitmap,
void** bitmap) {