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
31abbd70
Commit
31abbd70
authored
Mar 07, 2011
by
Juan Lang
Committed by
Alexandre Julliard
Mar 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't adjust the use counts in RetrieveUrlCacheEntryFile until the function will succeed.
parent
51057e60
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
urlcache.c
dlls/wininet/urlcache.c
+10
-10
No files found.
dlls/wininet/urlcache.c
View file @
31abbd70
...
...
@@ -1996,11 +1996,6 @@ BOOL WINAPI RetrieveUrlCacheEntryFileA(
TRACE
(
"Found URL: %s
\n
"
,
(
LPSTR
)
pUrlEntry
+
pUrlEntry
->
dwOffsetUrl
);
TRACE
(
"Header info: %s
\n
"
,
(
LPBYTE
)
pUrlEntry
+
pUrlEntry
->
dwOffsetHeaderInfo
);
pUrlEntry
->
dwHitRate
++
;
pUrlEntry
->
dwUseCount
++
;
GetSystemTimeAsFileTime
(
&
pUrlEntry
->
LastAccessTime
);
URLCache_HashEntrySetUse
(
pHashEntry
,
pUrlEntry
->
dwUseCount
);
error
=
URLCache_CopyEntry
(
pContainer
,
pHeader
,
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufferSize
,
pUrlEntry
,
FALSE
);
...
...
@@ -2012,6 +2007,11 @@ BOOL WINAPI RetrieveUrlCacheEntryFileA(
}
TRACE
(
"Local File Name: %s
\n
"
,
debugstr_a
((
LPCSTR
)
pUrlEntry
+
pUrlEntry
->
dwOffsetLocalName
));
pUrlEntry
->
dwHitRate
++
;
pUrlEntry
->
dwUseCount
++
;
URLCache_HashEntrySetUse
(
pHashEntry
,
pUrlEntry
->
dwUseCount
);
GetSystemTimeAsFileTime
(
&
pUrlEntry
->
LastAccessTime
);
URLCacheContainer_UnlockIndex
(
pContainer
,
pHeader
);
return
TRUE
;
...
...
@@ -2093,11 +2093,6 @@ BOOL WINAPI RetrieveUrlCacheEntryFileW(
TRACE
(
"Found URL: %s
\n
"
,
(
LPSTR
)
pUrlEntry
+
pUrlEntry
->
dwOffsetUrl
);
TRACE
(
"Header info: %s
\n
"
,
(
LPBYTE
)
pUrlEntry
+
pUrlEntry
->
dwOffsetHeaderInfo
);
pUrlEntry
->
dwHitRate
++
;
pUrlEntry
->
dwUseCount
++
;
GetSystemTimeAsFileTime
(
&
pUrlEntry
->
LastAccessTime
);
URLCache_HashEntrySetUse
(
pHashEntry
,
pUrlEntry
->
dwUseCount
);
error
=
URLCache_CopyEntry
(
pContainer
,
pHeader
,
...
...
@@ -2113,6 +2108,11 @@ BOOL WINAPI RetrieveUrlCacheEntryFileW(
}
TRACE
(
"Local File Name: %s
\n
"
,
debugstr_a
((
LPCSTR
)
pUrlEntry
+
pUrlEntry
->
dwOffsetLocalName
));
pUrlEntry
->
dwHitRate
++
;
pUrlEntry
->
dwUseCount
++
;
URLCache_HashEntrySetUse
(
pHashEntry
,
pUrlEntry
->
dwUseCount
);
GetSystemTimeAsFileTime
(
&
pUrlEntry
->
LastAccessTime
);
URLCacheContainer_UnlockIndex
(
pContainer
,
pHeader
);
return
TRUE
;
...
...
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