summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-31 14:34:54 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-31 14:34:54 -0700
commitda3447b5a8c1baffacf485461b0169f778706305 (patch)
tree2060560c8c299690d542378e9998f1156bd73a61 /core
parentda4ff18a7dd2753856c1cfc712140887a34dae92 (diff)
downloadpdfium-da3447b5a8c1baffacf485461b0169f778706305.tar.xz
Fix bool / int mismatch for win64
See https://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/286646/steps/compile%20%28with%20patch%29/logs/stdio Review-Url: https://codereview.chromium.org/2463963002
Diffstat (limited to 'core')
-rw-r--r--core/fxge/win32/fx_win32_print.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxge/win32/fx_win32_print.cpp b/core/fxge/win32/fx_win32_print.cpp
index 6d00d835d9..ab12a92b1c 100644
--- a/core/fxge/win32/fx_win32_print.cpp
+++ b/core/fxge/win32/fx_win32_print.cpp
@@ -320,8 +320,8 @@ FX_BOOL CGdiPrinterDriver::DrawDeviceText(int nChars,
// Try to get the font and draw again.
g_pdfium_typeface_accessible_func(&lf, wsText.c_str(), nChars);
- return ExtTextOutW(m_hDC, 0, 0, ETO_GLYPH_INDEX, nullptr, wsText.c_str(),
- nChars, nChars > 1 ? &spacing[1] : nullptr);
+ return !!ExtTextOutW(m_hDC, 0, 0, ETO_GLYPH_INDEX, nullptr, wsText.c_str(),
+ nChars, nChars > 1 ? &spacing[1] : nullptr);
#else
return FALSE;
#endif