Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9def0ca2
Commit
9def0ca2
authored
Aug 03, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fix handling offset in BSCallback.
parent
ea905eab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
navigate.c
dlls/mshtml/navigate.c
+14
-12
No files found.
dlls/mshtml/mshtml_private.h
View file @
9def0ca2
...
...
@@ -160,6 +160,7 @@ struct BSCallback {
LPWSTR
headers
;
HGLOBAL
post_data
;
ULONG
post_data_len
;
ULONG
readed
;
nsChannel
*
nschannel
;
nsIStreamListener
*
nslistener
;
...
...
dlls/mshtml/navigate.c
View file @
9def0ca2
...
...
@@ -365,19 +365,20 @@ static HRESULT WINAPI BindStatusCallback_OnDataAvailable(IBindStatusCallback *if
do
{
hres
=
IStream_Read
(
pstgmed
->
u
.
pstm
,
This
->
nsstream
->
buf
,
sizeof
(
This
->
nsstream
->
buf
),
&
This
->
nsstream
->
buf_size
);
if
(
This
->
nsstream
->
buf_size
)
{
nsres
=
nsIStreamListener_OnDataAvailable
(
This
->
nslistener
,
(
nsIRequest
*
)
NSCHANNEL
(
This
->
nschannel
),
This
->
nscontext
,
NSINSTREAM
(
This
->
nsstream
),
0
/* FIXME */
,
dwSize
);
if
(
NS_FAILED
(
nsres
))
FIXME
(
"OnDataAvailable failed: %08lx
\n
"
,
nsres
);
if
(
This
->
nsstream
->
buf_size
)
FIXME
(
"buffer is not empty!
\n
"
);
}
else
{
&
This
->
nsstream
->
buf_size
);
if
(
!
This
->
nsstream
->
buf_size
)
break
;
}
nsres
=
nsIStreamListener_OnDataAvailable
(
This
->
nslistener
,
(
nsIRequest
*
)
NSCHANNEL
(
This
->
nschannel
),
This
->
nscontext
,
NSINSTREAM
(
This
->
nsstream
),
This
->
readed
,
This
->
nsstream
->
buf_size
);
if
(
NS_FAILED
(
nsres
))
FIXME
(
"OnDataAvailable failed: %08lx
\n
"
,
nsres
);
if
(
This
->
nsstream
->
buf_size
)
FIXME
(
"buffer is not empty!
\n
"
);
This
->
readed
+=
This
->
nsstream
->
buf_size
;
}
while
(
hres
==
S_OK
);
}
...
...
@@ -575,6 +576,7 @@ BSCallback *create_bscallback(HTMLDocument *doc, LPCOLESTR url)
ret
->
post_data
=
NULL
;
ret
->
headers
=
NULL
;
ret
->
post_data_len
=
0
;
ret
->
readed
=
0
;
ret
->
nschannel
=
NULL
;
ret
->
nslistener
=
NULL
;
ret
->
nscontext
=
NULL
;
...
...
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