fix bug pg22630

This commit is contained in:
Svetlana Kulikova
2020-10-01 15:23:49 +03:00
parent d47775f113
commit 383305310c
2 changed files with 32 additions and 4 deletions

View File

@ -8,7 +8,7 @@
#include <vector>
#include <string>
int main(int argc, char *argv[])
int main()
{
std::vector<std::wstring> arFiles = NSDirectory::GetFiles(NSFile::GetProcessDirectory() + L"/../../../Files");
std::wstring sTmp = NSFile::GetProcessDirectory() + L"/tmp";
@ -27,7 +27,7 @@ int main(int argc, char *argv[])
if (oEpub.IsEpubFile(sFileName) == S_OK)
{
std::wstring sFile = NSFile::GetFileName(sFileName);
sFile = sFile.substr(0, sFile.find_last_of(L'.'));
sFile = sFile.substr(0, sFile.rfind(L'.'));
std::wcout << L"|----------|" << sFile << L"|----------|" << std::endl;