Index: core/src/fpdftext/fpdf_text.cpp |
diff --git a/core/src/fpdftext/fpdf_text.cpp b/core/src/fpdftext/fpdf_text.cpp |
index f5ec28cbbf4d6dedda3f97120faa82e49e0fd29d..003af30a0e2616d3c6bc585e70b5b63e9749b09a 100644 |
--- a/core/src/fpdftext/fpdf_text.cpp |
+++ b/core/src/fpdftext/fpdf_text.cpp |
@@ -26,10 +26,10 @@ CFX_ByteString CharFromUnicodeAlt(FX_WCHAR unicode, int destcp, const FX_CHAR* d |
} |
return CFX_ByteString(defchar, -1); |
} |
- FX_BOOL bDef = FALSE; |
char buf[10]; |
- int ret = FXSYS_WideCharToMultiByte(destcp, 0, (wchar_t*)&unicode, 1, buf, 10, NULL, &bDef); |
- if (ret && !bDef) { |
+ int iDef = 0; |
+ int ret = FXSYS_WideCharToMultiByte(destcp, 0, (wchar_t*)&unicode, 1, buf, 10, NULL, &iDef); |
+ if (ret && !iDef) { |
return CFX_ByteString(buf, ret); |
} |
const FX_CHAR* altstr = FCS_GetAltStr(unicode); |