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
b90346fd
Commit
b90346fd
authored
Jan 18, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Do navigation in message handler.
parent
4e3bd6e6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
+22
-7
navigate.c
dlls/shdocvw/navigate.c
+22
-7
No files found.
dlls/shdocvw/navigate.c
View file @
b90346fd
...
...
@@ -638,10 +638,28 @@ static HRESULT navigate_bsc(DocHost *This, BindStatusCallback *bsc, IMoniker *mo
return
hres
;
}
typedef
struct
{
task_header_t
header
;
BindStatusCallback
*
bsc
;
}
task_navigate_bsc_t
;
static
void
navigate_bsc_proc
(
DocHost
*
This
,
task_header_t
*
t
)
{
task_navigate_bsc_t
*
task
=
(
task_navigate_bsc_t
*
)
t
;
if
(
!
This
->
hwnd
)
create_doc_view_hwnd
(
This
);
navigate_bsc
(
This
,
task
->
bsc
,
NULL
);
IBindStatusCallback_Release
(
BINDSC
(
task
->
bsc
));
}
HRESULT
navigate_url
(
DocHost
*
This
,
LPCWSTR
url
,
const
VARIANT
*
Flags
,
const
VARIANT
*
TargetFrameName
,
VARIANT
*
PostData
,
VARIANT
*
Headers
)
{
BindStatusCallback
*
bsc
;
task_navigate_bsc_t
*
task
;
PBYTE
post_data
=
NULL
;
ULONG
post_data_len
=
0
;
LPWSTR
headers
=
NULL
;
...
...
@@ -671,16 +689,13 @@ HRESULT navigate_url(DocHost *This, LPCWSTR url, const VARIANT *Flags,
TRACE
(
"Headers: %s
\n
"
,
debugstr_w
(
headers
));
}
if
(
!
This
->
hwnd
)
create_doc_view_hwnd
(
Thi
s
);
task
=
heap_alloc
(
sizeof
(
*
task
));
task
->
bsc
=
create_callback
(
This
,
url
,
post_data
,
post_data_len
,
header
s
);
bsc
=
create_callback
(
This
,
url
,
post_data
,
post_data_len
,
headers
);
if
(
post_data
)
SafeArrayUnaccessData
(
V_ARRAY
(
PostData
));
navigate_bsc
(
This
,
bsc
,
NULL
);
IBindStatusCallback_Release
(
BINDSC
(
bsc
));
push_dochost_task
(
This
,
&
task
->
header
,
navigate_bsc_proc
,
This
->
url
==
NULL
);
return
S_OK
;
}
...
...
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