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
061b6a83
Commit
061b6a83
authored
May 20, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
May 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fixed buffer size calculation.
parent
30df52ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
bindprot.c
dlls/urlmon/bindprot.c
+7
-9
No files found.
dlls/urlmon/bindprot.c
View file @
061b6a83
...
@@ -1002,20 +1002,18 @@ static HRESULT report_data(BindProtocol *This, DWORD bscf, ULONG progress, ULONG
...
@@ -1002,20 +1002,18 @@ static HRESULT report_data(BindProtocol *This, DWORD bscf, ULONG progress, ULONG
do
{
do
{
read
=
0
;
read
=
0
;
hres
=
IInternetProtocol_Read
(
This
->
protocol
,
This
->
buf
+
This
->
buf_size
,
BUFFER_SIZE
-
This
->
buf_size
,
&
read
);
hres
=
IInternetProtocol_Read
(
This
->
protocol
,
This
->
buf
+
This
->
buf_size
,
if
(
hres
!=
S_OK
)
BUFFER_SIZE
-
This
->
buf_size
,
&
read
);
break
;
if
(
FAILED
(
hres
)
&&
hres
!=
E_PENDING
)
return
hres
;
This
->
buf_size
+=
read
;
This
->
buf_size
+=
read
;
}
while
(
This
->
buf_size
<
MIME_TEST_SIZE
);
}
while
(
This
->
buf_size
<
MIME_TEST_SIZE
&&
hres
==
S_OK
);
if
(
FAILED
(
hres
)
&&
hres
!=
E_PENDING
)
return
hres
;
This
->
buf_size
+=
read
;
if
(
This
->
buf_size
<
MIME_TEST_SIZE
&&
hres
!=
S_FALSE
)
if
(
This
->
buf_size
<
MIME_TEST_SIZE
&&
hres
!=
S_FALSE
)
return
S_OK
;
return
S_OK
;
hres
=
FindMimeFromData
(
NULL
,
This
->
url
,
This
->
buf
,
min
(
This
->
buf_size
,
MIME_TEST_SIZE
),
hres
=
FindMimeFromData
(
NULL
,
This
->
url
,
This
->
buf
,
min
(
This
->
buf_size
,
MIME_TEST_SIZE
),
This
->
mime
,
0
,
&
mime
,
0
);
This
->
mime
,
0
,
&
mime
,
0
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
return
hres
;
return
hres
;
...
...
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