DownloadFileCloseOrDelete
function · net · orchestration
- Address
0x5b0550· 18 bytes, up to0x5b0561- Signature
void __thiscall (void *this, bool deleteFile)- Meaning
- Releases a download file without committing it, deleting it when asked
- Confidence
- verified, proof one
- Finding
- net/download#releasing-a-download
Finding: Releasing a download in net: download
0x5b0450(delete, commit) takes the lock 0xc2a1a0, drops one reference from the file object and from each object its +4 chains to (0x5b04d0), deleting each whose count +8 reaches 0 through slot 0 with 1, and clears +0. It then deletes the file (0x5b04f0), or with commit, for a .partial, renames it to the final path (0x5b0570), which sets state 3, error 1 when the rename fails. 0x5b0550(delete) is the release without a commit and 0x5b0440 without either.
The derivation is in the doc.
Callers 4
- PollSurveyDownload glue
- PollPatchDownload glue
- DownloadFileClose net
- DownloadFileOpen net
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.