Update 7zip.cpp

Fix comments, add newline
This commit is contained in:
Derek "Turtle" Roe 2021-04-02 03:12:48 -05:00
parent 8942ae2b47
commit 821766666e
1 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ m_Opened(false)
InFile_Open(&m_archiveStream.file, FileName);
if (m_archiveStream.file.handle == INVALID_HANDLE_VALUE)
{
//PrintError("can not open input file");
//PrintError("Can not open input file");
return;
}
m_FileSize = GetFileSize(m_archiveStream.file.handle, NULL);
@ -58,7 +58,7 @@ m_Opened(false)
}
else
{
//SzArEx_Open will delete the passed db if it fails
// SzArEx_Open will delete the passed database if it fails
m_db = NULL;
}
}
@ -227,13 +227,13 @@ std::wstring C7zip::FileNameIndex(int index)
std::wstring filename;
if (m_db == NULL || m_db->FileNameOffsets == 0)
{
/* no filename */
// No filename
return filename;
}
int namelen = SzArEx_GetFileNameUtf16(m_db, index, NULL);
if (namelen <= 0)
{
/* no filename */
// No filename
return filename;
}
filename.resize(namelen);