From da3447b5a8c1baffacf485461b0169f778706305 Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 31 Oct 2016 14:34:54 -0700 Subject: 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 --- core/fxge/win32/fx_win32_print.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fxge') 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 -- cgit v1.2.3