FPDFTextObj_GetText: improve type of the output buffer

This was untyped void*, but in practice we always write at as a
wchar_t*, make that explicit.

Change-Id: I90e9221a24f2fd8d4aa03e071ff8f6d83d031f88
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/82930
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/fpdfsdk/fpdf_edittext.cpp b/fpdfsdk/fpdf_edittext.cpp
index 8493f32..0f4b7a0 100644
--- a/fpdfsdk/fpdf_edittext.cpp
+++ b/fpdfsdk/fpdf_edittext.cpp
@@ -553,7 +553,7 @@
 FPDF_EXPORT unsigned long FPDF_CALLCONV
 FPDFTextObj_GetText(FPDF_PAGEOBJECT text_object,
                     FPDF_TEXTPAGE text_page,
-                    void* buffer,
+                    FPDF_WCHAR* buffer,
                     unsigned long length) {
   CPDF_TextObject* pTextObj = CPDFTextObjectFromFPDFPageObject(text_object);
   if (!pTextObj)
diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h
index 7378d1d..1f8e238 100644
--- a/public/fpdf_edit.h
+++ b/public/fpdf_edit.h
@@ -1222,7 +1222,7 @@
 FPDF_EXPORT unsigned long FPDF_CALLCONV
 FPDFTextObj_GetText(FPDF_PAGEOBJECT text_object,
                     FPDF_TEXTPAGE text_page,
-                    void* buffer,
+                    FPDF_WCHAR* buffer,
                     unsigned long length);
 
 // Experimental API.