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
b6db22da
Commit
b6db22da
authored
Mar 20, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fixed vartest.c tests on Windows 8.1.
parent
20e47051
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
vartest.c
dlls/oleaut32/tests/vartest.c
+4
-7
variant.c
dlls/oleaut32/variant.c
+2
-1
No files found.
dlls/oleaut32/tests/vartest.c
View file @
b6db22da
...
@@ -542,14 +542,11 @@ static void _test_bstr_var(unsigned line, const VARIANT *v, const char *str)
...
@@ -542,14 +542,11 @@ static void _test_bstr_var(unsigned line, const VARIANT *v, const char *str)
static
void
test_VariantInit
(
void
)
static
void
test_VariantInit
(
void
)
{
{
VARIANT
ARG
v1
,
v2
;
VARIANT
v
;
/* Test that VariantInit() only sets the type */
memset
(
&
v
,
-
1
,
sizeof
(
v
));
memset
(
&
v1
,
-
1
,
sizeof
(
v1
));
VariantInit
(
&
v
);
v2
=
v1
;
ok
(
V_VT
(
&
v
)
==
VT_EMPTY
,
"VariantInit() returned vt %d
\n
"
,
V_VT
(
&
v
));
V_VT
(
&
v2
)
=
VT_EMPTY
;
VariantInit
(
&
v1
);
ok
(
!
memcmp
(
&
v1
,
&
v2
,
sizeof
(
v1
)),
"VariantInit() set extra fields
\n
"
);
}
}
/* All possible combinations of extra V_VT() flags */
/* All possible combinations of extra V_VT() flags */
...
...
dlls/oleaut32/variant.c
View file @
b6db22da
...
@@ -575,7 +575,8 @@ void WINAPI VariantInit(VARIANTARG* pVarg)
...
@@ -575,7 +575,8 @@ void WINAPI VariantInit(VARIANTARG* pVarg)
{
{
TRACE
(
"(%p)
\n
"
,
pVarg
);
TRACE
(
"(%p)
\n
"
,
pVarg
);
V_VT
(
pVarg
)
=
VT_EMPTY
;
/* Native doesn't set any other fields */
/* Win8.1 zeroes whole struct. Previous implementations don't set any other fields. */
V_VT
(
pVarg
)
=
VT_EMPTY
;
}
}
HRESULT
VARIANT_ClearInd
(
VARIANTARG
*
pVarg
)
HRESULT
VARIANT_ClearInd
(
VARIANTARG
*
pVarg
)
...
...
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