Skip to content

Commit

Permalink
Update axwrpdf.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tablacus committed Mar 20, 2020
1 parent ccfe1c9 commit 7fc6f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axwrpdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ HRESULT GetFileInfoInternal(LPCSTR buf, LONG_PTR len, LPCSTR filename, unsigned
CHECK_HR(doc->get_PageCount(&count));

UINT index = count;
sscanf_s(PathFindFileNameA(filename), "%08u", &index);
sscanf_s(filename, "%08u", &index);

if (index >= count)
{
Expand Down

0 comments on commit 7fc6f6a

Please sign in to comment.