Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7967f8be
Commit
7967f8be
authored
Sep 18, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't define DELETED_CACHE_ENTRY in public headers.
parent
22454d63
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
urlcache.c
dlls/wininet/tests/urlcache.c
+2
-2
urlcache.c
dlls/wininet/urlcache.c
+4
-2
wininet.h
include/wininet.h
+0
-1
No files found.
dlls/wininet/tests/urlcache.c
View file @
7967f8be
...
...
@@ -582,8 +582,8 @@ static void test_urlcacheA(void)
memset
(
lpCacheEntryInfo
,
0
,
cbCacheEntryInfo
);
ret
=
GetUrlCacheEntryInfo
(
TEST_URL
,
lpCacheEntryInfo
,
&
cbCacheEntryInfo
);
ok
(
ret
,
"GetUrlCacheEntryInfo failed with error %d
\n
"
,
GetLastError
());
ok
(
lpCacheEntryInfo
->
CacheEntryType
&
DELETED_CACHE_ENTRY
,
"CacheEntryType hasn't
DELETED
_CACHE_ENTRY set, (flags %08x)
\n
"
,
ok
(
lpCacheEntryInfo
->
CacheEntryType
&
0x400000
,
"CacheEntryType hasn't
PENDING_DELETE
_CACHE_ENTRY set, (flags %08x)
\n
"
,
lpCacheEntryInfo
->
CacheEntryType
);
HeapFree
(
GetProcessHeap
(),
0
,
lpCacheEntryInfo
);
...
...
dlls/wininet/urlcache.c
View file @
7967f8be
...
...
@@ -79,6 +79,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(wininet);
#define HASHTABLE_REDR 5
#define HASHTABLE_FLAG_BITS 5
#define PENDING_DELETE_CACHE_ENTRY 0x00400000
#define DWORD_SIG(a,b,c,d) (a | (b << 8) | (c << 16) | (d << 24))
#define URL_SIGNATURE DWORD_SIG('U','R','L',' ')
#define REDR_SIGNATURE DWORD_SIG('R','E','D','R')
...
...
@@ -2193,7 +2195,7 @@ static BOOL DeleteUrlCacheEntryInternal(LPURLCACHE_HEADER pHeader,
{
/* FIXME: implement timeout object unlocking */
TRACE
(
"Trying to delete locked entry
\n
"
);
pUrlEntry
->
CacheEntryType
|=
DELETED
_CACHE_ENTRY
;
pUrlEntry
->
CacheEntryType
|=
PENDING_DELETE
_CACHE_ENTRY
;
SetLastError
(
ERROR_SHARING_VIOLATION
);
return
FALSE
;
}
...
...
@@ -2294,7 +2296,7 @@ BOOL WINAPI UnlockUrlCacheEntryFileA(
if
(
!
pUrlEntry
->
dwUseCount
)
{
URLCache_HashEntrySetFlags
(
pHashEntry
,
HASHTABLE_URL
);
if
(
pUrlEntry
->
CacheEntryType
&
DELETED
_CACHE_ENTRY
)
if
(
pUrlEntry
->
CacheEntryType
&
PENDING_DELETE
_CACHE_ENTRY
)
DeleteUrlCacheEntryInternal
(
pHeader
,
pHashEntry
);
}
...
...
include/wininet.h
View file @
7967f8be
...
...
@@ -1497,7 +1497,6 @@ INTERNETAPI DWORD WINAPI PrivacyGetZonePreferenceW(DWORD,DWORD,LPDWORD,LPWSTR,LP
#define EDITED_CACHE_ENTRY 0x00000008
#define COOKIE_CACHE_ENTRY 0x00100000
#define URLHISTORY_CACHE_ENTRY 0x00200000
#define DELETED_CACHE_ENTRY 0x00400000
#define TRACK_OFFLINE_CACHE_ENTRY 0x00000010
#define TRACK_ONLINE_CACHE_ENTRY 0x00000020
#define SPARSE_CACHE_ENTRY 0x00010000
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment