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
13a785cc
Commit
13a785cc
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 headers as BSTR.
parent
b90346fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
navigate.c
dlls/shdocvw/navigate.c
+4
-9
No files found.
dlls/shdocvw/navigate.c
View file @
13a785cc
...
...
@@ -41,7 +41,7 @@ typedef struct {
LPWSTR
url
;
HGLOBAL
post_data
;
LPW
STR
headers
;
B
STR
headers
;
ULONG
post_data_len
;
}
BindStatusCallback
;
...
...
@@ -160,8 +160,9 @@ static ULONG WINAPI BindStatusCallback_Release(IBindStatusCallback *iface)
IOleClientSite_Release
(
CLIENTSITE
(
This
->
doc_host
));
if
(
This
->
post_data
)
GlobalFree
(
This
->
post_data
);
if
(
This
->
headers
)
SysFreeString
(
This
->
headers
);
heap_free
(
This
->
url
);
heap_free
(
This
->
headers
);
heap_free
(
This
);
}
...
...
@@ -399,7 +400,7 @@ static BindStatusCallback *create_callback(DocHost *doc_host, LPCWSTR url, PBYTE
ret
->
url
=
heap_strdupW
(
url
);
ret
->
post_data
=
NULL
;
ret
->
post_data_len
=
post_data_len
;
ret
->
headers
=
NULL
;
ret
->
headers
=
headers
?
SysAllocString
(
headers
)
:
NULL
;
ret
->
doc_host
=
doc_host
;
IOleClientSite_AddRef
(
CLIENTSITE
(
doc_host
));
...
...
@@ -409,12 +410,6 @@ static BindStatusCallback *create_callback(DocHost *doc_host, LPCWSTR url, PBYTE
memcpy
(
ret
->
post_data
,
post_data
,
post_data_len
);
}
if
(
headers
)
{
int
size
=
(
strlenW
(
headers
)
+
1
)
*
sizeof
(
WCHAR
);
ret
->
headers
=
heap_alloc
(
size
);
memcpy
(
ret
->
headers
,
headers
,
size
);
}
return
ret
;
}
...
...
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