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
bda6decd
Commit
bda6decd
authored
Nov 26, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fully initialize VarMod() return value for Empty % x case.
parent
7391352a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
vartest.c
dlls/oleaut32/tests/vartest.c
+2
-1
variant.c
dlls/oleaut32/variant.c
+1
-0
No files found.
dlls/oleaut32/tests/vartest.c
View file @
bda6decd
...
...
@@ -3513,7 +3513,8 @@ static void test_Mod( int line, VARIANT *left, VARIANT *right, VARIANT *expected
VARIANT
result
;
HRESULT
hres
;
memset
(
&
result
,
0
,
sizeof
(
result
)
);
V_VT
(
&
result
)
=
15
;
V_I4
(
&
result
)
=
0x12345
;
hres
=
pVarMod
(
left
,
right
,
&
result
);
ok_
(
__FILE__
,
line
)(
hres
==
expres
,
"wrong result %lx/%lx
\n
"
,
hres
,
expres
);
if
(
hres
==
S_OK
)
...
...
dlls/oleaut32/variant.c
View file @
bda6decd
...
...
@@ -5499,6 +5499,7 @@ HRESULT WINAPI VarMod(LPVARIANT left, LPVARIANT right, LPVARIANT result)
if
(
V_VT
(
left
)
==
VT_EMPTY
)
{
V_VT
(
result
)
=
VT_I4
;
V_I4
(
result
)
=
0
;
rc
=
S_OK
;
goto
end
;
}
...
...
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