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
2dd4e497
Commit
2dd4e497
authored
May 10, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
May 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Correctly handle VT_NULL in IXMLHTTPRequest::send.
parent
fdc4d40d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
httprequest.c
dlls/msxml3/httprequest.c
+16
-12
No files found.
dlls/msxml3/httprequest.c
View file @
2dd4e497
...
...
@@ -736,26 +736,30 @@ static HRESULT BindStatusCallback_create(httprequest* This, BindStatusCallback *
/* fall through */
case
VT_EMPTY
:
case
VT_ERROR
:
case
VT_NULL
:
ptr
=
NULL
;
size
=
0
;
break
;
}
bsc
->
body
=
GlobalAlloc
(
GMEM_FIXED
,
size
);
if
(
!
bsc
->
body
)
if
(
size
)
{
if
(
V_VT
(
body
)
==
VT_BSTR
)
heap_free
(
ptr
);
else
if
(
V_VT
(
body
)
==
(
VT_ARRAY
|
VT_UI1
))
SafeArrayUnaccessData
(
sa
);
bsc
->
body
=
GlobalAlloc
(
GMEM_FIXED
,
size
);
if
(
!
bsc
->
body
)
{
if
(
V_VT
(
body
)
==
VT_BSTR
)
heap_free
(
ptr
);
else
if
(
V_VT
(
body
)
==
(
VT_ARRAY
|
VT_UI1
))
SafeArrayUnaccessData
(
sa
);
heap_free
(
bsc
);
return
E_OUTOFMEMORY
;
}
heap_free
(
bsc
);
return
E_OUTOFMEMORY
;
}
send_data
=
GlobalLock
(
bsc
->
body
);
memcpy
(
send_data
,
ptr
,
size
);
GlobalUnlock
(
bsc
->
body
);
send_data
=
GlobalLock
(
bsc
->
body
);
memcpy
(
send_data
,
ptr
,
size
);
GlobalUnlock
(
bsc
->
body
);
}
if
(
V_VT
(
body
)
==
VT_BSTR
)
heap_free
(
ptr
);
...
...
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