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
bb96e264
Commit
bb96e264
authored
Nov 24, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Remove some deadcode from VarMod().
Always true/false conditions appear to exist since initial implementation was introduced in
2d1bccd0
.
parent
557a4e06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
variant.c
dlls/oleaut32/variant.c
+2
-9
No files found.
dlls/oleaut32/variant.c
View file @
bb96e264
...
...
@@ -5401,7 +5401,6 @@ end:
*/
HRESULT
WINAPI
VarMod
(
LPVARIANT
left
,
LPVARIANT
right
,
LPVARIANT
result
)
{
BOOL
lOk
=
TRUE
;
HRESULT
rc
=
E_FAIL
;
int
resT
=
0
;
VARIANT
lv
,
rv
;
...
...
@@ -5429,7 +5428,6 @@ HRESULT WINAPI VarMod(LPVARIANT left, LPVARIANT right, LPVARIANT result)
}
/* check for invalid inputs */
lOk
=
TRUE
;
switch
(
V_VT
(
left
)
&
VT_TYPEMASK
)
{
case
VT_BOOL
:
case
VT_I1
:
...
...
@@ -5531,15 +5529,10 @@ HRESULT WINAPI VarMod(LPVARIANT left, LPVARIANT right, LPVARIANT result)
{
V_VT
(
result
)
=
VT_EMPTY
;
rc
=
DISP_E_BADVARTYPE
;
}
else
if
((
V_VT
(
left
)
==
VT_NULL
)
||
(
V_VT
(
left
)
==
VT_EMPTY
)
||
(
V_VT
(
left
)
==
VT_ERROR
)
||
lOk
)
}
else
{
V_VT
(
result
)
=
VT_NULL
;
rc
=
S_OK
;
}
else
{
V_VT
(
result
)
=
VT_NULL
;
rc
=
DISP_E_BADVARTYPE
;
}
goto
end
;
case
VT_VARIANT
:
...
...
@@ -5551,7 +5544,7 @@ HRESULT WINAPI VarMod(LPVARIANT left, LPVARIANT right, LPVARIANT result)
rc
=
DISP_E_TYPEMISMATCH
;
goto
end
;
case
VT_RECORD
:
if
((
V_VT
(
left
)
==
15
)
||
((
V_VT
(
left
)
>=
24
)
&&
(
V_VT
(
left
)
<=
35
))
||
!
lOk
)
if
((
V_VT
(
left
)
==
15
)
||
((
V_VT
(
left
)
>=
24
)
&&
(
V_VT
(
left
)
<=
35
)))
{
V_VT
(
result
)
=
VT_EMPTY
;
rc
=
DISP_E_BADVARTYPE
;
...
...
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