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
b31e671a
Commit
b31e671a
authored
Jun 07, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Use return_bool in more places.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
parent
6010e6b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
21 deletions
+4
-21
global.c
dlls/vbscript/global.c
+4
-21
No files found.
dlls/vbscript/global.c
View file @
b31e671a
...
...
@@ -937,11 +937,7 @@ static HRESULT Global_IsDate(BuiltinDisp *This, VARIANT *arg, unsigned args_cnt,
{
TRACE
(
"%s
\n
"
,
debugstr_variant
(
arg
));
if
(
res
)
{
V_VT
(
res
)
=
VT_BOOL
;
V_BOOL
(
res
)
=
V_VT
(
arg
)
==
VT_DATE
?
VARIANT_TRUE
:
VARIANT_FALSE
;
}
return
S_OK
;
return
return_bool
(
res
,
V_VT
(
arg
)
==
VT_DATE
);
}
static
HRESULT
Global_IsEmpty
(
BuiltinDisp
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
...
...
@@ -949,12 +945,7 @@ static HRESULT Global_IsEmpty(BuiltinDisp *This, VARIANT *arg, unsigned args_cnt
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
;
return
return_bool
(
res
,
V_VT
(
arg
)
==
VT_EMPTY
);
}
static
HRESULT
Global_IsNull
(
BuiltinDisp
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
...
...
@@ -963,11 +954,7 @@ static HRESULT Global_IsNull(BuiltinDisp *This, VARIANT *arg, unsigned args_cnt,
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
;
return
return_bool
(
res
,
V_VT
(
arg
)
==
VT_NULL
);
}
static
HRESULT
Global_IsNumeric
(
BuiltinDisp
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
...
...
@@ -999,11 +986,7 @@ static HRESULT Global_IsObject(BuiltinDisp *This, VARIANT *arg, unsigned args_cn
assert
(
args_cnt
==
1
);
if
(
res
)
{
V_VT
(
res
)
=
VT_BOOL
;
V_BOOL
(
res
)
=
V_VT
(
arg
)
==
VT_DISPATCH
?
VARIANT_TRUE
:
VARIANT_FALSE
;
}
return
S_OK
;
return
return_bool
(
res
,
V_VT
(
arg
)
==
VT_DISPATCH
);
}
static
HRESULT
Global_Atn
(
BuiltinDisp
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
...
...
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