From 45061669500e6f4fe71972e0fb60065b02c255bf Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Wed, 6 Sep 2017 15:08:11 -0400 Subject: Adding in missed ) BUG=pdfium:828 Change-Id: Ifeaf19291ffd33aab63449ab52f8d2606b66c0fc Reviewed-on: https://pdfium-review.googlesource.com/13330 Reviewed-by: dsinclair Commit-Queue: Ryan Harrison --- core/fxge/win32/fx_win32_print.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/fxge/win32/fx_win32_print.cpp b/core/fxge/win32/fx_win32_print.cpp index 24cf42aa6b..ecd7be57c7 100644 --- a/core/fxge/win32/fx_win32_print.cpp +++ b/core/fxge/win32/fx_win32_print.cpp @@ -233,7 +233,8 @@ bool CGdiPrinterDriver::DrawDeviceText(int nChars, lf.lfCharSet = DEFAULT_CHARSET; const CFX_WideString wsName = pFont->GetFaceName().UTF8Decode(); - size_t iNameLen = std::min(wsName.GetLength(), static_cast(LF_FACESIZE - 1); + size_t iNameLen = + std::min(wsName.GetLength(), static_cast(LF_FACESIZE - 1)); memcpy(lf.lfFaceName, wsName.c_str(), sizeof(lf.lfFaceName[0]) * iNameLen); lf.lfFaceName[iNameLen] = 0; -- cgit v1.2.3