}\r
\r
// 展開/格納先を予測。ただしDTVスキャンに時間がかかる場合はスキップ可能。\r
- if (this->lcFiles->asInput->GetCount() < 3000 ||\r
+ size_t n = this->lcFiles->asInput->GetCount();\r
+ this->lcFiles->asOutput.Alloc(n);\r
+ this->lcFiles->apItem.Alloc(n);\r
+ if (n < 3000 ||\r
::AskDlg(\r
this->uCommand == TPI_COMMAND_EXTRACT ?\r
_("This archive contains so many files that it takes long to check Directory Traversal Vulnerability(DTV) problem. If you are sure this archive is safe, you can skip this scanning process. Do you want to scan for DTV problem?") :\r
return;\r
}\r
this->lcFiles->DeleteAllItems();\r
- this->lcFiles->asOutput.Clear();\r
- this->lcFiles->apItem.Clear();\r
+ this->lcFiles->asOutput.Empty();\r
+ this->lcFiles->apItem.Empty();\r
\r
bool fDTVWarning = false;\r
switch (this->uCommand)\r