Commit a78f458c authored by Charlie Fenton's avatar Charlie Fenton Committed by Oliver Bock

Mgr: If network activity is suspended, don't retrieve URL references within...

Mgr: If network activity is suspended, don't retrieve URL references within notices unless they are already in our cache or in the Windows cache
parent 09ff603a
......@@ -533,8 +533,12 @@ wxFSFile* CBOINCInternetFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wx
// or if the result is already in the Windows internet cache
bool CanUseWinInet = true;
if ((!retval) && status.network_suspend_reason) {
INTERNET_CACHE_ENTRY_INFO cache_info;
if (!GetUrlCacheEntryInfo(right.c_str(), sizeof(cache_info))) {
unsigned char cache_info[2048];
DWORD len = sizeof(cache_info);
if (!GetUrlCacheEntryInfo(right.c_str(),
(LPINTERNET_CACHE_ENTRY_INFO)cache_info,
&len)
) {
CanUseWinInet = false;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment