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
82d27a0d
Commit
82d27a0d
authored
Jun 27, 2022
by
Robert Wilhelm
Committed by
Alexandre Julliard
Jun 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Use return_null in more places.
Signed-off-by:
Robert Wilhelm
<
robert.wilhelm@gmx.net
>
parent
9546953b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
global.c
dlls/vbscript/global.c
+4
-12
No files found.
dlls/vbscript/global.c
View file @
82d27a0d
...
@@ -848,9 +848,7 @@ static HRESULT Global_Hex(BuiltinDisp *This, VARIANT *arg, unsigned args_cnt, VA
...
@@ -848,9 +848,7 @@ static HRESULT Global_Hex(BuiltinDisp *This, VARIANT *arg, unsigned args_cnt, VA
n
=
(
WORD
)
V_I2
(
arg
);
n
=
(
WORD
)
V_I2
(
arg
);
break
;
break
;
case
VT_NULL
:
case
VT_NULL
:
if
(
res
)
return
return_null
(
res
);
V_VT
(
res
)
=
VT_NULL
;
return
S_OK
;
default:
default:
hres
=
to_int
(
arg
,
&
ret
);
hres
=
to_int
(
arg
,
&
ret
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
...
@@ -889,9 +887,7 @@ static HRESULT Global_Oct(BuiltinDisp *This, VARIANT *arg, unsigned args_cnt, VA
...
@@ -889,9 +887,7 @@ static HRESULT Global_Oct(BuiltinDisp *This, VARIANT *arg, unsigned args_cnt, VA
n
=
(
WORD
)
V_I2
(
arg
);
n
=
(
WORD
)
V_I2
(
arg
);
break
;
break
;
case
VT_NULL
:
case
VT_NULL
:
if
(
res
)
return
return_null
(
res
);
V_VT
(
res
)
=
VT_NULL
;
return
S_OK
;
default:
default:
hres
=
to_int
(
arg
,
&
ret
);
hres
=
to_int
(
arg
,
&
ret
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
...
@@ -1430,9 +1426,7 @@ static HRESULT Global_LCase(BuiltinDisp *This, VARIANT *arg, unsigned args_cnt,
...
@@ -1430,9 +1426,7 @@ static HRESULT Global_LCase(BuiltinDisp *This, VARIANT *arg, unsigned args_cnt,
TRACE
(
"%s
\n
"
,
debugstr_variant
(
arg
));
TRACE
(
"%s
\n
"
,
debugstr_variant
(
arg
));
if
(
V_VT
(
arg
)
==
VT_NULL
)
{
if
(
V_VT
(
arg
)
==
VT_NULL
)
{
if
(
res
)
return
return_null
(
res
);
V_VT
(
res
)
=
VT_NULL
;
return
S_OK
;
}
}
hres
=
to_string
(
arg
,
&
str
);
hres
=
to_string
(
arg
,
&
str
);
...
@@ -1461,9 +1455,7 @@ static HRESULT Global_UCase(BuiltinDisp *This, VARIANT *arg, unsigned args_cnt,
...
@@ -1461,9 +1455,7 @@ static HRESULT Global_UCase(BuiltinDisp *This, VARIANT *arg, unsigned args_cnt,
TRACE
(
"%s
\n
"
,
debugstr_variant
(
arg
));
TRACE
(
"%s
\n
"
,
debugstr_variant
(
arg
));
if
(
V_VT
(
arg
)
==
VT_NULL
)
{
if
(
V_VT
(
arg
)
==
VT_NULL
)
{
if
(
res
)
return
return_null
(
res
);
V_VT
(
res
)
=
VT_NULL
;
return
S_OK
;
}
}
hres
=
to_string
(
arg
,
&
str
);
hres
=
to_string
(
arg
,
&
str
);
...
...
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