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
023abdac
Commit
023abdac
authored
Jan 28, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Moved WORKREQ_HTTPREADFILEEX out of WORKREQUEST.
parent
df749512
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
19 deletions
+17
-19
http.c
dlls/wininet/http.c
+17
-11
internet.h
dlls/wininet/internet.h
+0
-8
No files found.
dlls/wininet/http.c
View file @
023abdac
...
...
@@ -2877,16 +2877,22 @@ static DWORD HTTPREQ_ReadFile(object_header_t *hdr, void *buffer, DWORD size, DW
return
res
;
}
static
void
AsyncReadFileExProc
(
WORKREQUEST
*
workRequest
)
typedef
struct
{
task_header_t
hdr
;
void
*
buf
;
DWORD
size
;
DWORD
*
ret_read
;
}
read_file_ex_task_t
;
static
void
AsyncReadFileExProc
(
task_header_t
*
hdr
)
{
struct
WORKREQ_HTTPREADFILEEX
const
*
data
=
&
workRequest
->
u
.
HttpReadFileEx
;
http_request_t
*
req
=
(
http_request_t
*
)
workRequest
->
hdr
;
read_file_ex_task_t
*
task
=
(
read_file_ex_task_t
*
)
hdr
;
http_request_t
*
req
=
(
http_request_t
*
)
task
->
hdr
.
hdr
;
DWORD
res
;
TRACE
(
"INTERNETREADFILEEXW %p
\n
"
,
workRequest
->
hdr
);
res
=
HTTPREQ_Read
(
req
,
data
->
buf
,
data
->
size
,
data
->
ret_read
,
TRUE
);
TRACE
(
"INTERNETREADFILEEXW %p
\n
"
,
task
->
hdr
.
hdr
);
res
=
HTTPREQ_Read
(
req
,
task
->
buf
,
task
->
size
,
task
->
ret_read
,
TRUE
);
send_request_complete
(
req
,
res
==
ERROR_SUCCESS
,
res
);
}
...
...
@@ -2904,7 +2910,7 @@ static DWORD HTTPREQ_ReadFileEx(object_header_t *hdr, void *buf, DWORD size, DWO
if
(
hdr
->
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
*
task
;
read_file_ex_task_t
*
task
;
if
(
TryEnterCriticalSection
(
&
req
->
read_section
))
{
...
...
@@ -2918,11 +2924,11 @@ static DWORD HTTPREQ_ReadFileEx(object_header_t *hdr, void *buf, DWORD size, DWO
}
task
=
alloc_async_task
(
&
req
->
hdr
,
AsyncReadFileExProc
,
sizeof
(
*
task
));
task
->
u
.
HttpReadFileEx
.
buf
=
buf
;
task
->
u
.
HttpReadFileEx
.
size
=
size
;
task
->
u
.
HttpReadFileEx
.
ret_read
=
ret_read
;
task
->
buf
=
buf
;
task
->
size
=
size
;
task
->
ret_read
=
ret_read
;
INTERNET_AsyncCall
(
task
);
INTERNET_AsyncCall
(
&
task
->
hdr
);
return
ERROR_IO_PENDING
;
}
...
...
dlls/wininet/internet.h
View file @
023abdac
...
...
@@ -441,13 +441,6 @@ struct WORKREQ_SENDCALLBACK
DWORD
dwStatusInfoLength
;
};
struct
WORKREQ_HTTPREADFILEEX
{
void
*
buf
;
DWORD
size
;
DWORD
*
ret_read
;
};
typedef
struct
WORKREQ
task_header_t
;
typedef
void
(
*
async_task_proc_t
)(
task_header_t
*
);
...
...
@@ -470,7 +463,6 @@ typedef struct WORKREQ
struct
WORKREQ_FTPFINDNEXTW
FtpFindNextW
;
struct
WORKREQ_HTTPENDREQUESTW
HttpEndRequestW
;
struct
WORKREQ_SENDCALLBACK
SendCallback
;
struct
WORKREQ_HTTPREADFILEEX
HttpReadFileEx
;
}
u
;
}
WORKREQUEST
,
*
LPWORKREQUEST
;
...
...
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