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
47f490e1
Commit
47f490e1
authored
Oct 04, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Added support for locking HTTP request files.
parent
817d6625
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
http.c
dlls/wininet/http.c
+10
-2
internet.c
dlls/wininet/internet.c
+9
-0
internet.h
dlls/wininet/internet.h
+1
-0
No files found.
dlls/wininet/http.c
View file @
47f490e1
...
...
@@ -3255,8 +3255,16 @@ done:
static
DWORD
HTTPREQ_LockRequestFile
(
object_header_t
*
hdr
,
req_file_t
**
ret
)
{
http_request_t
*
req
=
(
http_request_t
*
)
hdr
;
FIXME
(
"(%p)
\n
"
,
req
);
return
ERROR_NOT_SUPPORTED
;
TRACE
(
"(%p)
\n
"
,
req
);
if
(
!
req
->
req_file
)
{
WARN
(
"No cache file name available
\n
"
);
return
ERROR_FILE_NOT_FOUND
;
}
*
ret
=
req_file_addref
(
req
->
req_file
);
return
ERROR_SUCCESS
;
}
static
const
object_vtbl_t
HTTPREQVtbl
=
{
...
...
dlls/wininet/internet.c
View file @
47f490e1
...
...
@@ -3917,6 +3917,13 @@ DWORD create_req_file(const WCHAR *file_name, req_file_t **ret)
return
ERROR_NOT_ENOUGH_MEMORY
;
}
req_file
->
file_handle
=
CreateFileW
(
req_file
->
file_name
,
GENERIC_READ
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
req_file
->
file_handle
==
INVALID_HANDLE_VALUE
)
{
req_file_release
(
req_file
);
return
GetLastError
();
}
*
ret
=
req_file
;
return
ERROR_SUCCESS
;
}
...
...
@@ -3928,6 +3935,8 @@ void req_file_release(req_file_t *req_file)
if
(
!
req_file
->
is_committed
)
DeleteFileW
(
req_file
->
file_name
);
if
(
req_file
->
file_handle
&&
req_file
->
file_handle
!=
INVALID_HANDLE_VALUE
)
CloseHandle
(
req_file
->
file_handle
);
heap_free
(
req_file
->
file_name
);
heap_free
(
req_file
);
}
...
...
dlls/wininet/internet.h
View file @
47f490e1
...
...
@@ -250,6 +250,7 @@ typedef enum
typedef
struct
{
LONG
ref
;
HANDLE
file_handle
;
WCHAR
*
file_name
;
BOOL
is_committed
;
}
req_file_t
;
...
...
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