summaryrefslogtreecommitdiff
path: root/public/fpdf_doc.h
diff options
context:
space:
mode:
authorJane Liu <janeliulwq@google.com>2017-08-22 16:28:05 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-22 21:06:37 +0000
commit8a1081fbf7f9fac94b32c59b5851387abdd24dea (patch)
tree60cb064ca85e72c1a2cb4a2fee7c406838e78597 /public/fpdf_doc.h
parented2f2769bf113df0088608fa5e949e3e48216a04 (diff)
downloadpdfium-8a1081fbf7f9fac94b32c59b5851387abdd24dea.tar.xz
Corrected the error setting after calling FPDF_LoadDocument()
Currently, if FPDF_LoadDocument() is called on a nonexistent file, the returned FPDF_DOCUMENT will be null, but FPDF_GetLastError() will return an error of FPDF_ERR_SUCCESS, i.e. no error. This CL corrects this behavior by updating the error to be FPDF_ERR_FILE when the file doesn't exist. Bug=pdfium:452 Change-Id: I3c3ec3a64e049636ddfb2ba5cb5f2745a0e19b6b Reviewed-on: https://pdfium-review.googlesource.com/11650 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Jane Liu <janeliulwq@google.com>
Diffstat (limited to 'public/fpdf_doc.h')
0 files changed, 0 insertions, 0 deletions