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
9f4d05b1
Commit
9f4d05b1
authored
Mar 27, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Alloc proper BSTR size in return_nscstr.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
46de3fcf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
xhr.js
dlls/mshtml/tests/xhr.js
+1
-0
xmlhttprequest.c
dlls/mshtml/xmlhttprequest.c
+1
-1
No files found.
dlls/mshtml/tests/xhr.js
View file @
9f4d05b1
...
...
@@ -29,6 +29,7 @@ function test_xhr() {
next_test
();
}
var
onload_func
=
xhr
.
onload
=
function
()
{
ok
(
xhr
.
statusText
===
"OK"
,
"statusText = "
+
xhr
.
statusText
);
if
(
complete_cnt
++
)
next_test
();
};
...
...
dlls/mshtml/xmlhttprequest.c
View file @
9f4d05b1
...
...
@@ -80,7 +80,7 @@ static HRESULT return_nscstr(nsresult nsres, nsACString *nscstr, BSTR *p)
if
(
*
str
)
{
len
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
str
,
-
1
,
NULL
,
0
);
*
p
=
SysAllocStringLen
(
NULL
,
len
);
*
p
=
SysAllocStringLen
(
NULL
,
len
-
1
);
if
(
!*
p
)
{
nsACString_Finish
(
nscstr
);
return
E_OUTOFMEMORY
;
...
...
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