From 3eb08c44e708e61499dd9bb66640323cd92c7eff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vincent=20B=C3=A9ron?= Date: Thu, 20 Oct 2005 13:14:31 +0000 Subject: [PATCH] Remove tempfile used to download Mozilla ActiveX control once it's not used anymore. --- dlls/shdocvw/shdocvw_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/shdocvw/shdocvw_main.c b/dlls/shdocvw/shdocvw_main.c index e486c1046ab..3ff03b70dae 100644 --- a/dlls/shdocvw/shdocvw_main.c +++ b/dlls/shdocvw/shdocvw_main.c @@ -315,6 +315,7 @@ static DWORD WINAPI ThreadFunc( LPVOID info ) DWORD r, sz, type; HKEY hkey; BOOL bCancelled = FALSE; + BOOL bTempfile = FALSE; /* find the name of the thing to download */ szUrl[0] = 0; @@ -338,6 +339,7 @@ static DWORD WINAPI ThreadFunc( LPVOID info ) strcatW( path, p+1 ); /* download it */ + bTempfile = TRUE; dl = create_dl(info, &bCancelled); r = URLDownloadToFileW( NULL, szUrl, path, 0, dl ); if( dl ) @@ -354,6 +356,8 @@ static DWORD WINAPI ThreadFunc( LPVOID info ) WaitForSingleObject( pi.hProcess, INFINITE ); end: + if( bTempfile ) + DeleteFileW( path ); EndDialog( hDlg, 0 ); return 0; } -- 2.11.4.GIT