mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:35:41 +00:00
If download if canceled, delete temporary file
svn path=/trunk/; revision=31462
This commit is contained in:
parent
3dce2f69c7
commit
5778b4df0d
1 changed files with 16 additions and 11 deletions
|
@ -315,6 +315,10 @@ ThreadFunc(LPVOID Context)
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (bTempfile)
|
if (bTempfile)
|
||||||
|
{
|
||||||
|
if (bCancelled)
|
||||||
|
DeleteFileW(path);
|
||||||
|
else
|
||||||
{
|
{
|
||||||
DWORD dwSize = sizeof(DWORD);
|
DWORD dwSize = sizeof(DWORD);
|
||||||
DWORD dwValue, dwType = REG_DWORD;
|
DWORD dwValue, dwType = REG_DWORD;
|
||||||
|
@ -328,6 +332,7 @@ ThreadFunc(LPVOID Context)
|
||||||
DeleteFileW(path);
|
DeleteFileW(path);
|
||||||
RegCloseKey(hKey);
|
RegCloseKey(hKey);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
EndDialog(Dlg, 0);
|
EndDialog(Dlg, 0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue