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
aa05f97f
Commit
aa05f97f
authored
Jun 23, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't delete the cache file when closing a request.
parent
3a438667
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
http.c
dlls/wininet/http.c
+1
-4
http.c
dlls/wininet/tests/http.c
+1
-1
No files found.
dlls/wininet/http.c
View file @
aa05f97f
...
...
@@ -1492,10 +1492,7 @@ static void HTTPREQ_Destroy(WININETHANDLEHEADER *hdr)
if
(
lpwhr
->
hCacheFile
)
CloseHandle
(
lpwhr
->
hCacheFile
);
if
(
lpwhr
->
lpszCacheFile
)
{
DeleteFileW
(
lpwhr
->
lpszCacheFile
);
/* FIXME */
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszCacheFile
);
}
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszCacheFile
);
DeleteCriticalSection
(
&
lpwhr
->
read_section
);
WININET_Release
(
&
lpwhr
->
lpHttpSession
->
hdr
);
...
...
dlls/wininet/tests/http.c
View file @
aa05f97f
...
...
@@ -1146,7 +1146,7 @@ static void test_http_cache(void)
file
=
CreateFile
(
file_name
,
GENERIC_READ
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
todo_wine
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"Could not create file: %u
\n
"
,
GetLastError
());
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"Could not create file: %u
\n
"
,
GetLastError
());
CloseHandle
(
file
);
request
=
HttpOpenRequestA
(
connect
,
NULL
,
"/"
,
NULL
,
NULL
,
types
,
INTERNET_FLAG_NO_CACHE_WRITE
,
0
);
...
...
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