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
3d2baaa6
Commit
3d2baaa6
authored
Jan 12, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Cast-qual warnings fixes.
parent
a065d0f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
propvariant.c
dlls/ole32/tests/propvariant.c
+4
-4
No files found.
dlls/ole32/tests/propvariant.c
View file @
3d2baaa6
...
...
@@ -199,8 +199,8 @@ static void test_validtypes(void)
static
void
test_copy
(
void
)
{
static
c
onst
c
har
szTestString
[]
=
"Test String"
;
static
const
WCHAR
wszTestString
[]
=
{
'T'
,
'e'
,
's'
,
't'
,
' '
,
'S'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
static
char
szTestString
[]
=
"Test String"
;
static
WCHAR
wszTestString
[]
=
{
'T'
,
'e'
,
's'
,
't'
,
' '
,
'S'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
PROPVARIANT
propvarSrc
;
PROPVARIANT
propvarDst
;
HRESULT
hr
;
...
...
@@ -217,7 +217,7 @@ static void test_copy(void)
ok
(
hr
==
S_OK
,
"PropVariantClear(...VT_BSTR...) failed
\n
"
);
propvarSrc
.
vt
=
VT_LPWSTR
;
U
(
propvarSrc
).
pwszVal
=
(
LPWSTR
)
wszTestString
;
U
(
propvarSrc
).
pwszVal
=
wszTestString
;
hr
=
PropVariantCopy
(
&
propvarDst
,
&
propvarSrc
);
ok
(
hr
==
S_OK
,
"PropVariantCopy(...VT_LPWSTR...) failed
\n
"
);
ok
(
!
lstrcmpW
(
U
(
propvarSrc
).
pwszVal
,
U
(
propvarDst
).
pwszVal
),
"Wide string not copied properly
\n
"
);
...
...
@@ -226,7 +226,7 @@ static void test_copy(void)
memset
(
&
propvarSrc
,
0
,
sizeof
(
propvarSrc
));
propvarSrc
.
vt
=
VT_LPSTR
;
U
(
propvarSrc
).
pszVal
=
(
LPSTR
)
szTestString
;
U
(
propvarSrc
).
pszVal
=
szTestString
;
hr
=
PropVariantCopy
(
&
propvarDst
,
&
propvarSrc
);
ok
(
hr
==
S_OK
,
"PropVariantCopy(...VT_LPSTR...) failed
\n
"
);
ok
(
!
strcmp
(
U
(
propvarSrc
).
pszVal
,
U
(
propvarDst
).
pszVal
),
"String not copied properly
\n
"
);
...
...
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