Close downloaded application before attempting to execute it.
CORE-8134 #resolve
svn path=/trunk/; revision=63085
BOOL bCab = FALSE;
HINTERNET hOpen = NULL;
HINTERNET hFile = NULL;
BOOL bCab = FALSE;
HINTERNET hOpen = NULL;
HINTERNET hFile = NULL;
+ HANDLE hOut = INVALID_HANDLE_VALUE;
unsigned char lpBuffer[4096];
const LPWSTR lpszAgent = L"RApps/1.0";
unsigned char lpBuffer[4096];
const LPWSTR lpszAgent = L"RApps/1.0";
+ CloseHandle(hOut);
+ hOut = INVALID_HANDLE_VALUE;
+
if (bCancelled) goto end;
ShowWindow(Dlg, SW_HIDE);
if (bCancelled) goto end;
ShowWindow(Dlg, SW_HIDE);
ShellExecuteW( NULL, L"open", path, NULL, NULL, SW_SHOWNORMAL );
}
end:
ShellExecuteW( NULL, L"open", path, NULL, NULL, SW_SHOWNORMAL );
}
end:
+ if (hOut != INVALID_HANDLE_VALUE) CloseHandle(hOut);
InternetCloseHandle(hFile);
InternetCloseHandle(hOpen);
InternetCloseHandle(hFile);
InternetCloseHandle(hOpen);