diff --git a/axwrpdf.cpp b/axwrpdf.cpp index ba735c5..37f084f 100644 --- a/axwrpdf.cpp +++ b/axwrpdf.cpp @@ -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) {