Index: fpdfsdk/fpdftext.cpp |
diff --git a/fpdfsdk/fpdftext.cpp b/fpdfsdk/fpdftext.cpp |
index 3e64d8e2c40393fb5d74448c1b159d7d9fd4288e..fb980e5bddc3c6622788e0b048f9ff45aa7821ca 100644 |
--- a/fpdfsdk/fpdftext.cpp |
+++ b/fpdfsdk/fpdftext.cpp |
@@ -50,7 +50,7 @@ DLLEXPORT int STDCALL FPDFText_CountChars(FPDF_TEXTPAGE text_page) { |
DLLEXPORT unsigned int STDCALL FPDFText_GetUnicode(FPDF_TEXTPAGE text_page, |
int index) { |
if (!text_page) |
- return -1; |
+ return 0; |
IPDF_TextPage* textpage = (IPDF_TextPage*)text_page; |
if (index < 0 || index >= textpage->CountChars()) |