mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:16:07 +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
|
@ -316,17 +316,22 @@ ThreadFunc(LPVOID Context)
|
||||||
end:
|
end:
|
||||||
if (bTempfile)
|
if (bTempfile)
|
||||||
{
|
{
|
||||||
DWORD dwSize = sizeof(DWORD);
|
if (bCancelled)
|
||||||
DWORD dwValue, dwType = REG_DWORD;
|
DeleteFileW(path);
|
||||||
if (RegQueryValueEx(hKey,
|
else
|
||||||
L"DeleteInstaller",
|
{
|
||||||
NULL,
|
DWORD dwSize = sizeof(DWORD);
|
||||||
&dwType,
|
DWORD dwValue, dwType = REG_DWORD;
|
||||||
(LPBYTE)&dwValue,
|
if (RegQueryValueEx(hKey,
|
||||||
&dwSize) == ERROR_SUCCESS)
|
L"DeleteInstaller",
|
||||||
if (dwValue == 0x1)
|
NULL,
|
||||||
DeleteFileW(path);
|
&dwType,
|
||||||
RegCloseKey(hKey);
|
(LPBYTE)&dwValue,
|
||||||
|
&dwSize) == ERROR_SUCCESS)
|
||||||
|
if (dwValue == 0x1)
|
||||||
|
DeleteFileW(path);
|
||||||
|
RegCloseKey(hKey);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
EndDialog(Dlg, 0);
|
EndDialog(Dlg, 0);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue