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
4ff62118
Commit
4ff62118
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: Store URL in BindStatusCallback.
parent
6a23bd88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
navigate.c
dlls/shdocvw/navigate.c
+5
-2
shdocvw.h
dlls/shdocvw/shdocvw.h
+17
-0
No files found.
dlls/shdocvw/navigate.c
View file @
4ff62118
...
...
@@ -40,6 +40,7 @@ typedef struct {
DocHost
*
doc_host
;
LPWSTR
url
;
HGLOBAL
post_data
;
LPWSTR
headers
;
ULONG
post_data_len
;
...
...
@@ -160,6 +161,7 @@ static ULONG WINAPI BindStatusCallback_Release(IBindStatusCallback *iface)
IOleClientSite_Release
(
CLIENTSITE
(
This
->
doc_host
));
if
(
This
->
post_data
)
GlobalFree
(
This
->
post_data
);
heap_free
(
This
->
url
);
heap_free
(
This
->
headers
);
heap_free
(
This
);
}
...
...
@@ -379,7 +381,7 @@ static const IHttpNegotiateVtbl HttpNegotiateVtbl = {
HttpNegotiate_OnResponse
};
static
IBindStatusCallback
*
create_callback
(
DocHost
*
doc_host
,
PBYTE
post_data
,
static
IBindStatusCallback
*
create_callback
(
DocHost
*
doc_host
,
LPCWSTR
url
,
PBYTE
post_data
,
ULONG
post_data_len
,
LPWSTR
headers
)
{
BindStatusCallback
*
ret
=
heap_alloc
(
sizeof
(
BindStatusCallback
));
...
...
@@ -388,6 +390,7 @@ static IBindStatusCallback *create_callback(DocHost *doc_host, PBYTE post_data,
ret
->
lpHttpNegotiateVtbl
=
&
HttpNegotiateVtbl
;
ret
->
ref
=
1
;
ret
->
url
=
heap_strdupW
(
url
);
ret
->
post_data
=
NULL
;
ret
->
post_data_len
=
post_data_len
;
ret
->
headers
=
NULL
;
...
...
@@ -613,7 +616,7 @@ static HRESULT navigate_mon(DocHost *This, IMoniker *mon, PBYTE post_data, ULONG
CoTaskMemFree
(
This
->
url
);
This
->
url
=
url
;
callback
=
create_callback
(
This
,
post_data
,
post_data_len
,
(
LPWSTR
)
headers
);
callback
=
create_callback
(
This
,
url
,
post_data
,
post_data_len
,
(
LPWSTR
)
headers
);
CreateAsyncBindCtx
(
0
,
callback
,
0
,
&
bindctx
);
hres
=
bind_to_object
(
This
,
mon
,
This
->
url
,
bindctx
,
callback
);
...
...
dlls/shdocvw/shdocvw.h
View file @
4ff62118
...
...
@@ -38,6 +38,8 @@
#include "mshtmhst.h"
#include "hlink.h"
#include "wine/unicode.h"
/**********************************************************************
* Shell Instance Objects
*/
...
...
@@ -241,4 +243,19 @@ static inline BOOL heap_free(void *mem)
return
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
}
static
inline
LPWSTR
heap_strdupW
(
LPCWSTR
str
)
{
LPWSTR
ret
=
NULL
;
if
(
str
)
{
DWORD
size
;
size
=
(
strlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
);
ret
=
heap_alloc
(
size
);
memcpy
(
ret
,
str
,
size
);
}
return
ret
;
}
#endif
/* __WINE_SHDOCVW_H */
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