[saco] Match the three CDownloadList delete helpers; _snprintf with sizeof(buf) - 1 into a 261-byte frame

This commit is contained in:
ricardoofnl
2026-09-04 20:38:27 +07:00
parent 662d3331b9
commit e504cb236e
2 changed files with 34 additions and 0 deletions
+31
View File
@@ -67,6 +67,37 @@ bool CDownloadManager::FUNC_1000C010()
//----------------------------------------------------
// the three removal helpers below only ever look in the first search dir
BOOL CDownloadList::FUNC_1000C590(DWORD dwId)
{
char szPath[261];
_snprintf(szPath, sizeof(szPath) - 1, "%s\\0x%X.dff", szDir1, dwId);
return DeleteFile(szPath);
}
//----------------------------------------------------
BOOL CDownloadList::FUNC_1000C5D0(DWORD dwId)
{
char szPath[261];
_snprintf(szPath, sizeof(szPath) - 1, "%s\\0x%X.txd", szDir1, dwId);
return DeleteFile(szPath);
}
//----------------------------------------------------
BOOL CDownloadList::FUNC_1000C610(char *szName)
{
char szPath[261];
_snprintf(szPath, sizeof(szPath) - 1, "%s\\%s", szDir1, szName);
return DeleteFile(szPath);
}
//----------------------------------------------------
bool CDownloadList::FUNC_1000D110(DWORD dwCrc)
{
for(DWORD i = 0; i != m_dwCount; i++)
+3
View File
@@ -67,6 +67,9 @@ public:
DOWNLOAD_ENTRY *GetAt(DWORD dwIndex) { if(dwIndex >= m_dwCount) return NULL; return m_pEntries[dwIndex]; }
BOOL FUNC_1000C590(DWORD dwId); // .text:1000C590
BOOL FUNC_1000C5D0(DWORD dwId); // .text:1000C5D0
BOOL FUNC_1000C610(char *szName); // .text:1000C610
bool FUNC_1000D110(DWORD dwCrc); // .text:1000D110
bool FUNC_1000D150(DWORD dwCrc); // .text:1000D150
char FUNC_1000D190(DWORD dwCrc); // .text:1000D190