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
0fabf540
Commit
0fabf540
authored
Apr 08, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Keep track of the number of bytes written.
parent
c378490d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
http.c
dlls/wininet/http.c
+9
-1
internet.h
dlls/wininet/internet.h
+2
-0
No files found.
dlls/wininet/http.c
View file @
0fabf540
...
...
@@ -1875,9 +1875,14 @@ static DWORD HTTPREQ_ReadFileExW(WININETHANDLEHEADER *hdr, INTERNET_BUFFERSW *bu
static
BOOL
HTTPREQ_WriteFile
(
WININETHANDLEHEADER
*
hdr
,
const
void
*
buffer
,
DWORD
size
,
DWORD
*
written
)
{
BOOL
ret
;
LPWININETHTTPREQW
lpwhr
=
(
LPWININETHTTPREQW
)
hdr
;
return
NETCON_send
(
&
lpwhr
->
netConnection
,
buffer
,
size
,
0
,
(
LPINT
)
written
);
*
written
=
0
;
if
((
ret
=
NETCON_send
(
&
lpwhr
->
netConnection
,
buffer
,
size
,
0
,
(
LPINT
)
written
)))
lpwhr
->
dwBytesWritten
+=
*
written
;
return
ret
;
}
static
void
HTTPREQ_AsyncQueryDataAvailableProc
(
WORKREQUEST
*
workRequest
)
...
...
@@ -3259,6 +3264,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
{
sprintfW
(
contentLengthStr
,
szContentLength
,
dwContentLength
);
HTTP_HttpAddRequestHeadersW
(
lpwhr
,
contentLengthStr
,
-
1L
,
HTTP_ADDREQ_FLAG_ADD_IF_NEW
);
lpwhr
->
dwBytesToWrite
=
dwContentLength
;
}
if
(
lpwhr
->
lpHttpSession
->
lpAppInfo
->
lpszAgent
)
{
...
...
@@ -3357,6 +3363,8 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
NETCON_send
(
&
lpwhr
->
netConnection
,
ascii_req
,
len
,
0
,
&
cnt
);
HeapFree
(
GetProcessHeap
(),
0
,
ascii_req
);
lpwhr
->
dwBytesWritten
=
dwOptionalLength
;
INTERNET_SendCallback
(
&
lpwhr
->
hdr
,
lpwhr
->
hdr
.
dwContext
,
INTERNET_STATUS_REQUEST_SENT
,
&
len
,
sizeof
(
DWORD
));
...
...
dlls/wininet/internet.h
View file @
0fabf540
...
...
@@ -198,6 +198,8 @@ typedef struct
LPWSTR
lpszStatusText
;
DWORD
dwContentLength
;
/* total number of bytes to be read */
DWORD
dwContentRead
;
/* bytes of the content read so far */
DWORD
dwBytesToWrite
;
DWORD
dwBytesWritten
;
HTTPHEADERW
*
pCustHeaders
;
DWORD
nCustHeaders
;
HANDLE
hCacheFile
;
...
...
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