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
a37ea541
Commit
a37ea541
authored
Oct 20, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added Global_isNull implementation.
parent
9ed15fbf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
global.c
dlls/vbscript/global.c
+9
-2
api.vbs
dlls/vbscript/tests/api.vbs
+12
-0
No files found.
dlls/vbscript/global.c
View file @
a37ea541
...
...
@@ -291,8 +291,15 @@ static HRESULT Global_IsEmpty(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, V
static
HRESULT
Global_IsNull
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
TRACE
(
"(%s)
\n
"
,
debugstr_variant
(
arg
));
assert
(
args_cnt
==
1
);
if
(
res
)
{
V_VT
(
res
)
=
VT_BOOL
;
V_BOOL
(
res
)
=
V_VT
(
arg
)
==
VT_NULL
?
VARIANT_TRUE
:
VARIANT_FALSE
;
}
return
S_OK
;
}
static
HRESULT
Global_IsNumeric
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
...
...
dlls/vbscript/tests/api.vbs
View file @
a37ea541
...
...
@@ -44,6 +44,18 @@ Call ok(not isEmpty(4), "isEmpty(4) is true?")
Call
ok
(
not
isEmpty
(
"x"
),
"isEmpty(
""
x
""
) is true?"
)
Call
ok
(
not
isEmpty
(
Null
),
"isEmpty(Null) is true?"
)
Call
ok
(
not
isNull
(
new
EmptyClass
),
"isNull(new EmptyClass) is true?"
)
Set
x
=
new
EmptyClass
Call
ok
(
not
isNull
(
x
),
"isNull(x) is true?"
)
x
=
null
Call
ok
(
isNull
(
x
),
"isNull(x) is not true?"
)
Call
ok
(
not
isNull
(
empty
),
"isNull(empty) is true?"
)
Call
ok
(
not
isNull
(
Nothing
),
"isNull(Nothing) is true?"
)
Call
ok
(
not
isNull
(
true
),
"isNull(true) is true?"
)
Call
ok
(
not
isNull
(
4
),
"isNull(4) is true?"
)
Call
ok
(
not
isNull
(
"x"
),
"isNull(
""
x
""
) is true?"
)
Call
ok
(
isNull
(
Null
),
"isNull(Null) is not true?"
)
Call
ok
(
getVT
(
err
)
=
"VT_DISPATCH"
,
"getVT(err) = "
&
getVT
(
err
))
Sub
TestHex
(
x
,
ex
)
...
...
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