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
ed3e5404
Commit
ed3e5404
authored
Feb 03, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Return error source and description from GetExceptionInfo.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ed22d71f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
jscript.c
dlls/jscript/jscript.c
+4
-0
run.c
dlls/jscript/tests/run.c
+1
-2
No files found.
dlls/jscript/jscript.c
View file @
ed3e5404
...
...
@@ -168,6 +168,10 @@ static HRESULT WINAPI JScriptError_GetExceptionInfo(IActiveScriptError *iface, E
memset
(
excepinfo
,
0
,
sizeof
(
*
excepinfo
));
excepinfo
->
scode
=
This
->
ei
.
error
;
if
(
This
->
ei
.
source
)
jsstr_to_bstr
(
This
->
ei
.
source
,
&
excepinfo
->
bstrSource
);
if
(
This
->
ei
.
message
)
jsstr_to_bstr
(
This
->
ei
.
message
,
&
excepinfo
->
bstrDescription
);
return
S_OK
;
}
...
...
dlls/jscript/tests/run.c
View file @
ed3e5404
...
...
@@ -2345,13 +2345,12 @@ static void test_error_reports(void)
if
(
is_lang_english
())
{
if
(
tests
[
i
].
error_source
)
todo_wine
ok
(
ei
.
bstrSource
&&
!
lstrcmpW
(
ei
.
bstrSource
,
tests
[
i
].
error_source
),
"[%u] bstrSource = %s expected %s
\n
"
,
i
,
wine_dbgstr_w
(
ei
.
bstrSource
),
wine_dbgstr_w
(
tests
[
i
].
error_source
));
else
ok
(
!
ei
.
bstrSource
,
"[%u] bstrSource = %s expected NULL
\n
"
,
i
,
wine_dbgstr_w
(
ei
.
bstrSource
));
if
(
tests
[
i
].
description
)
todo_wine
todo_wine
_if
(
tests
[
i
].
todo_flags
&
ERROR_TODO_DESCRIPTION
)
ok
(
ei
.
bstrDescription
&&
!
lstrcmpW
(
ei
.
bstrDescription
,
tests
[
i
].
description
),
"[%u] bstrDescription = %s expected %s
\n
"
,
i
,
wine_dbgstr_w
(
ei
.
bstrDescription
),
wine_dbgstr_w
(
tests
[
i
].
description
));
else
...
...
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