Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
7fa15c5f
Commit
7fa15c5f
authored
13 years ago
by
Jacek Caban
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
vbscript: Added Global_IsEmpty implementation.
parent
8a17193d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/vbscript/global.c
+9
-2
9 additions, 2 deletions
dlls/vbscript/global.c
dlls/vbscript/tests/api.vbs
+12
-0
12 additions, 0 deletions
dlls/vbscript/tests/api.vbs
with
21 additions
and
2 deletions
dlls/vbscript/global.c
+
9
−
2
View file @
7fa15c5f
...
...
@@ -278,8 +278,15 @@ static HRESULT Global_IsDate(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VA
static
HRESULT
Global_IsEmpty
(
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_EMPTY
?
VARIANT_TRUE
:
VARIANT_FALSE
;
}
return
S_OK
;
}
static
HRESULT
Global_IsNull
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
...
...
This diff is collapsed.
Click to expand it.
dlls/vbscript/tests/api.vbs
+
12
−
0
View file @
7fa15c5f
...
...
@@ -32,6 +32,18 @@ Call ok(not isObject(4), "isObject(4) is true?")
Call
ok
(
not
isObject
(
"x"
),
"isObject(
""
x
""
) is true?"
)
Call
ok
(
not
isObject
(
Null
),
"isObject(Null) is true?"
)
Call
ok
(
not
isEmpty
(
new
EmptyClass
),
"isEmpty(new EmptyClass) is true?"
)
Set
x
=
new
EmptyClass
Call
ok
(
not
isEmpty
(
x
),
"isEmpty(x) is true?"
)
x
=
empty
Call
ok
(
isEmpty
(
x
),
"isEmpty(x) is not true?"
)
Call
ok
(
isEmpty
(
empty
),
"isEmpty(empty) is not true?"
)
Call
ok
(
not
isEmpty
(
Nothing
),
"isEmpty(Nothing) is not true?"
)
Call
ok
(
not
isEmpty
(
true
),
"isEmpty(true) is true?"
)
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
(
getVT
(
err
)
=
"VT_DISPATCH"
,
"getVT(err) = "
&
getVT
(
err
))
Sub
TestHex
(
x
,
ex
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment