summaryrefslogtreecommitdiff
path: root/public/fpdf_attachment.h
diff options
context:
space:
mode:
authorJane Liu <janeliulwq@google.com>2017-07-25 14:44:11 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-26 17:32:10 +0000
commit605fb604ae9c868f840523db6a65d5088fbec07c (patch)
treeebcfb5fa8c9682d95bd9291d3cd6493fd5722edc /public/fpdf_attachment.h
parent1e6ec62e18b7d03d0bae98422e9c7db9364b149b (diff)
downloadpdfium-605fb604ae9c868f840523db6a65d5088fbec07c.tar.xz
Added missing STDCALLchromium/3168
This CL adds the missing STDCALLs in attachment APIs. Bug=pdfium:818 Change-Id: Ifaa9cf84d4036cd6444167f8efd16dad81224afc Reviewed-on: https://pdfium-review.googlesource.com/8930 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'public/fpdf_attachment.h')
-rw-r--r--public/fpdf_attachment.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/public/fpdf_attachment.h b/public/fpdf_attachment.h
index 6a23970c45..e604d59264 100644
--- a/public/fpdf_attachment.h
+++ b/public/fpdf_attachment.h
@@ -30,8 +30,8 @@ DLLEXPORT int STDCALL FPDFDoc_GetAttachmentCount(FPDF_DOCUMENT document);
// name - name of the new attachment.
//
// Returns a handle to the new attachment object, or NULL on failure.
-DLLEXPORT FPDF_ATTACHMENT FPDFDoc_AddAttachment(FPDF_DOCUMENT document,
- FPDF_WIDESTRING name);
+DLLEXPORT FPDF_ATTACHMENT STDCALL FPDFDoc_AddAttachment(FPDF_DOCUMENT document,
+ FPDF_WIDESTRING name);
// Experimental API.
// Get the embedded attachment at |index| in |document|. Note that the returned
@@ -128,10 +128,10 @@ FPDFAttachment_GetStringValue(FPDF_ATTACHMENT attachment,
// len - length of file data.
//
// Returns true if successful.
-DLLEXPORT FPDF_BOOL FPDFAttachment_SetFile(FPDF_ATTACHMENT attachment,
- FPDF_DOCUMENT document,
- const void* contents,
- const unsigned long len);
+DLLEXPORT FPDF_BOOL STDCALL FPDFAttachment_SetFile(FPDF_ATTACHMENT attachment,
+ FPDF_DOCUMENT document,
+ const void* contents,
+ const unsigned long len);
// Experimental API.
// Get the file data of |attachment|. |buffer| is only modified if |buflen| is