wininet: Don't overwrite locked entry in CommitUrlCacheEntry.

oldstable
Piotr Caban 2012-04-05 21:35:00 +02:00 committed by Alexandre Julliard
parent d1ecb6d9ba
commit c9983b1159
1 changed files with 8 additions and 0 deletions

View File

@ -2678,6 +2678,14 @@ static BOOL CommitUrlCacheEntryInternal(
if (URLCache_FindHash(pHeader, lpszUrlNameA, &pHashEntry))
{
if ((pHashEntry->dwHashKey & ((1<<HASHTABLE_FLAG_BITS)-1)) == HASHTABLE_LOCK)
{
/* FIXME: implement timeout object unlocking */
FIXME("Trying to overwrite locked entry\n");
SetLastError(ERROR_SHARING_VIOLATION);
goto cleanup;
}
FIXME("entry already in cache - don't know what to do!\n");
/*
* SetLastError(ERROR_FILE_NOT_FOUND);