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
6888ea39
Commit
6888ea39
authored
Sep 17, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed NULL IDispatch comparistion.
parent
dcaf0669
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
engine.c
dlls/jscript/engine.c
+2
-2
lang.js
dlls/jscript/tests/lang.js
+2
-0
No files found.
dlls/jscript/engine.c
View file @
6888ea39
...
...
@@ -261,8 +261,8 @@ static HRESULT disp_cmp(IDispatch *disp1, IDispatch *disp2, BOOL *ret)
return
S_OK
;
}
if
(
!
disp1
)
{
*
ret
=
!
disp2
;
if
(
!
disp1
||
!
disp2
)
{
*
ret
=
FALSE
;
return
S_OK
;
}
...
...
dlls/jscript/tests/lang.js
View file @
6888ea39
...
...
@@ -943,6 +943,8 @@ ok(getVT(true && nullDisp) === "VT_DISPATCH",
"getVT(0 && nullDisp) = "
+
getVT
(
true
&&
nullDisp
));
ok
(
!
nullDisp
===
true
,
"!nullDisp = "
+
!
nullDisp
);
ok
(
String
(
nullDisp
)
===
"null"
,
"String(nullDisp) = "
+
String
(
nullDisp
));
ok
(
nullDisp
!=
new
Object
(),
"nullDisp == new Object()"
);
ok
(
new
Object
()
!=
nullDisp
,
"new Object() == nullDisp"
);
function
do_test
()
{}
function
nosemicolon
()
{}
nosemicolon
();
...
...
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