Index: fpdfsdk/fpdftext.cpp |
diff --git a/fpdfsdk/fpdftext.cpp b/fpdfsdk/fpdftext.cpp |
index cbb8e00a4045a380ab20c0801f111d21e3ebb9d6..24b592a88beea1ef8d4d5c8ca7969019c070f9b2 100644 |
--- a/fpdfsdk/fpdftext.cpp |
+++ b/fpdfsdk/fpdftext.cpp |
@@ -51,7 +51,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()) |