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
7de7fc65
Commit
7de7fc65
authored
Apr 16, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Add more tests for PropVariantClear.
parent
3cb0c813
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
4 deletions
+47
-4
propvariant.c
dlls/ole32/tests/propvariant.c
+47
-4
No files found.
dlls/ole32/tests/propvariant.c
View file @
7de7fc65
...
...
@@ -184,28 +184,71 @@ static void test_validtypes(void)
HRESULT
hr
;
unsigned
int
i
;
memset
(
&
propvar
,
0
,
sizeof
(
propvar
));
memset
(
&
propvar
,
0x55
,
sizeof
(
propvar
));
hr
=
PropVariantClear
(
&
propvar
);
ok
(
hr
==
STG_E_INVALIDPARAMETER
,
"expected STG_E_INVALIDPARAMETER, got %08x
\n
"
,
hr
);
todo_wine
ok
(
propvar
.
vt
==
0
,
"expected 0, got %d
\n
"
,
propvar
.
vt
);
todo_wine
ok
(
U
(
propvar
).
uhVal
.
QuadPart
==
0
,
"expected 0, got %#x/%#x
\n
"
,
U
(
propvar
).
uhVal
.
u
.
LowPart
,
U
(
propvar
).
uhVal
.
u
.
HighPart
);
for
(
i
=
0
;
i
<
sizeof
(
valid_types
)
/
sizeof
(
valid_types
[
0
]);
i
++
)
{
VARTYPE
vt
;
memset
(
&
propvar
,
0x55
,
sizeof
(
propvar
));
U
(
propvar
).
pszVal
=
NULL
;
vt
=
propvar
.
vt
=
i
;
hr
=
PropVariantClear
(
&
propvar
);
expect
(
hr
,
vt
);
if
(
hr
==
S_OK
)
/* FIXME: Remove once Wine is fixed */
ok
(
U
(
propvar
).
uhVal
.
QuadPart
==
0
,
"%u: expected 0, got %#x/%#x
\n
"
,
i
,
U
(
propvar
).
uhVal
.
u
.
LowPart
,
U
(
propvar
).
uhVal
.
u
.
HighPart
);
else
todo_wine
ok
(
U
(
propvar
).
uhVal
.
QuadPart
==
0
,
"%u: expected 0, got %#x/%#x
\n
"
,
i
,
U
(
propvar
).
uhVal
.
u
.
LowPart
,
U
(
propvar
).
uhVal
.
u
.
HighPart
);
memset
(
&
propvar
,
0x55
,
sizeof
(
propvar
));
U
(
propvar
).
pszVal
=
NULL
;
vt
=
propvar
.
vt
=
i
|
VT_ARRAY
;
hr
=
PropVariantClear
(
&
propvar
);
expect
(
hr
,
vt
);
if
(
hr
==
S_OK
)
/* FIXME: Remove once Wine is fixed */
ok
(
U
(
propvar
).
uhVal
.
QuadPart
==
0
,
"%u: expected 0, got %#x/%#x
\n
"
,
i
,
U
(
propvar
).
uhVal
.
u
.
LowPart
,
U
(
propvar
).
uhVal
.
u
.
HighPart
);
else
todo_wine
ok
(
U
(
propvar
).
uhVal
.
QuadPart
==
0
,
"%u: expected 0, got %#x/%#x
\n
"
,
i
,
U
(
propvar
).
uhVal
.
u
.
LowPart
,
U
(
propvar
).
uhVal
.
u
.
HighPart
);
memset
(
&
propvar
,
0x55
,
sizeof
(
propvar
));
U
(
propvar
).
pszVal
=
NULL
;
vt
=
propvar
.
vt
=
i
|
VT_VECTOR
;
hr
=
PropVariantClear
(
&
propvar
);
expect
(
hr
,
vt
);
if
(
hr
==
S_OK
)
/* FIXME: Remove once Wine is fixed */
ok
(
U
(
propvar
).
uhVal
.
QuadPart
==
0
,
"%u: expected 0, got %#x/%#x
\n
"
,
i
,
U
(
propvar
).
uhVal
.
u
.
LowPart
,
U
(
propvar
).
uhVal
.
u
.
HighPart
);
else
todo_wine
ok
(
U
(
propvar
).
uhVal
.
QuadPart
==
0
,
"%u: expected 0, got %#x/%#x
\n
"
,
i
,
U
(
propvar
).
uhVal
.
u
.
LowPart
,
U
(
propvar
).
uhVal
.
u
.
HighPart
);
memset
(
&
propvar
,
0x55
,
sizeof
(
propvar
));
U
(
propvar
).
pszVal
=
NULL
;
vt
=
propvar
.
vt
=
i
|
VT_BYREF
;
hr
=
PropVariantClear
(
&
propvar
);
expect
(
hr
,
vt
);
if
(
hr
==
S_OK
)
/* FIXME: Remove once Wine is fixed */
ok
(
U
(
propvar
).
uhVal
.
QuadPart
==
0
,
"%u: expected 0, got %#x/%#x
\n
"
,
i
,
U
(
propvar
).
uhVal
.
u
.
LowPart
,
U
(
propvar
).
uhVal
.
u
.
HighPart
);
else
todo_wine
ok
(
U
(
propvar
).
uhVal
.
QuadPart
==
0
,
"%u: expected 0, got %#x/%#x
\n
"
,
i
,
U
(
propvar
).
uhVal
.
u
.
LowPart
,
U
(
propvar
).
uhVal
.
u
.
HighPart
);
}
}
...
...
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