diff options
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/fpdfview.cpp | 8 | ||||
-rw-r--r-- | fpdfsdk/include/fsdk_mgr.h | 10 |
2 files changed, 10 insertions, 8 deletions
diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp index e5a53da739..2b69e94765 100644 --- a/fpdfsdk/fpdfview.cpp +++ b/fpdfsdk/fpdfview.cpp @@ -1044,7 +1044,7 @@ DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document, } #ifdef PDF_ENABLE_XFA -FPDF_RESULT FPDF_BStr_Init(FPDF_BSTR* str) { +DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Init(FPDF_BSTR* str) { if (!str) return -1; @@ -1052,7 +1052,9 @@ FPDF_RESULT FPDF_BStr_Init(FPDF_BSTR* str) { return 0; } -FPDF_RESULT FPDF_BStr_Set(FPDF_BSTR* str, FPDF_LPCSTR bstr, int length) { +DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Set(FPDF_BSTR* str, + FPDF_LPCSTR bstr, + int length) { if (!str) return -1; if (!bstr || !length) @@ -1084,7 +1086,7 @@ FPDF_RESULT FPDF_BStr_Set(FPDF_BSTR* str, FPDF_LPCSTR bstr, int length) { return 0; } -FPDF_RESULT FPDF_BStr_Clear(FPDF_BSTR* str) { +DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str) { if (!str) return -1; diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h index 39edc38f57..3d691c1f2d 100644 --- a/fpdfsdk/include/fsdk_mgr.h +++ b/fpdfsdk/include/fsdk_mgr.h @@ -334,14 +334,14 @@ class CPDFDoc_Environment final { FPDF_WIDESTRING header = (FPDF_WIDESTRING)bsHeader.GetBuffer(bsHeader.GetLength()); - FPDF_BSTR respone; - FPDF_BStr_Init(&respone); + FPDF_BSTR response; + FPDF_BStr_Init(&response); m_pInfo->FFI_PostRequestURL(m_pInfo, URL, data, contentType, encode, - header, &respone); + header, &response); CFX_WideString wsRet = CFX_WideString::FromUTF16LE( - (unsigned short*)respone.str, respone.len / sizeof(unsigned short)); - FPDF_BStr_Clear(&respone); + (unsigned short*)response.str, response.len / sizeof(unsigned short)); + FPDF_BStr_Clear(&response); return wsRet; } |