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
7117219b
Commit
7117219b
authored
May 30, 2019
by
Sven Baars
Committed by
Alexandre Julliard
May 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
propsys/tests: Fix some ok() messages.
Signed-off-by:
Sven Baars
<
sven.wine@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
818838b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
propsys.c
dlls/propsys/tests/propsys.c
+4
-4
No files found.
dlls/propsys/tests/propsys.c
View file @
7117219b
...
@@ -1485,13 +1485,13 @@ static void test_PropVariantToBuffer(void)
...
@@ -1485,13 +1485,13 @@ static void test_PropVariantToBuffer(void)
UINT8
buffer
[
256
];
UINT8
buffer
[
256
];
hr
=
InitPropVariantFromBuffer
(
data
,
10
,
&
propvar
);
hr
=
InitPropVariantFromBuffer
(
data
,
10
,
&
propvar
);
ok
(
hr
==
S_OK
,
"InitVariantFromBuffer failed 0x%08x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Init
Prop
VariantFromBuffer failed 0x%08x.
\n
"
,
hr
);
hr
=
PropVariantToBuffer
(
&
propvar
,
NULL
,
0
);
/* crash when cb isn't zero */
hr
=
PropVariantToBuffer
(
&
propvar
,
NULL
,
0
);
/* crash when cb isn't zero */
ok
(
hr
==
S_OK
,
"PropVariantToBuffer failed: 0x%08x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"PropVariantToBuffer failed: 0x%08x.
\n
"
,
hr
);
PropVariantClear
(
&
propvar
);
PropVariantClear
(
&
propvar
);
hr
=
InitPropVariantFromBuffer
(
data
,
10
,
&
propvar
);
hr
=
InitPropVariantFromBuffer
(
data
,
10
,
&
propvar
);
ok
(
hr
==
S_OK
,
"InitVariantFromBuffer failed 0x%08x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Init
Prop
VariantFromBuffer failed 0x%08x.
\n
"
,
hr
);
hr
=
PropVariantToBuffer
(
&
propvar
,
buffer
,
10
);
hr
=
PropVariantToBuffer
(
&
propvar
,
buffer
,
10
);
ok
(
hr
==
S_OK
,
"PropVariantToBuffer failed: 0x%08x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"PropVariantToBuffer failed: 0x%08x.
\n
"
,
hr
);
ok
(
!
memcmp
(
buffer
,
data
,
10
)
&&
!
buffer
[
10
],
"got wrong buffer.
\n
"
);
ok
(
!
memcmp
(
buffer
,
data
,
10
)
&&
!
buffer
[
10
],
"got wrong buffer.
\n
"
);
...
@@ -1499,7 +1499,7 @@ static void test_PropVariantToBuffer(void)
...
@@ -1499,7 +1499,7 @@ static void test_PropVariantToBuffer(void)
PropVariantClear
(
&
propvar
);
PropVariantClear
(
&
propvar
);
hr
=
InitPropVariantFromBuffer
(
data
,
10
,
&
propvar
);
hr
=
InitPropVariantFromBuffer
(
data
,
10
,
&
propvar
);
ok
(
hr
==
S_OK
,
"InitVariantFromBuffer failed 0x%08x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Init
Prop
VariantFromBuffer failed 0x%08x.
\n
"
,
hr
);
buffer
[
0
]
=
99
;
buffer
[
0
]
=
99
;
hr
=
PropVariantToBuffer
(
&
propvar
,
buffer
,
11
);
hr
=
PropVariantToBuffer
(
&
propvar
,
buffer
,
11
);
ok
(
hr
==
E_FAIL
,
"PropVariantToBuffer returned: 0x%08x.
\n
"
,
hr
);
ok
(
hr
==
E_FAIL
,
"PropVariantToBuffer returned: 0x%08x.
\n
"
,
hr
);
...
@@ -1508,7 +1508,7 @@ static void test_PropVariantToBuffer(void)
...
@@ -1508,7 +1508,7 @@ static void test_PropVariantToBuffer(void)
PropVariantClear
(
&
propvar
);
PropVariantClear
(
&
propvar
);
hr
=
InitPropVariantFromBuffer
(
data
,
10
,
&
propvar
);
hr
=
InitPropVariantFromBuffer
(
data
,
10
,
&
propvar
);
ok
(
hr
==
S_OK
,
"InitVariantFromBuffer failed 0x%08x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Init
Prop
VariantFromBuffer failed 0x%08x.
\n
"
,
hr
);
hr
=
PropVariantToBuffer
(
&
propvar
,
buffer
,
9
);
hr
=
PropVariantToBuffer
(
&
propvar
,
buffer
,
9
);
ok
(
hr
==
S_OK
,
"PropVariantToBuffer failed: 0x%08x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"PropVariantToBuffer failed: 0x%08x.
\n
"
,
hr
);
ok
(
!
memcmp
(
buffer
,
data
,
9
)
&&
!
buffer
[
9
],
"got wrong buffer.
\n
"
);
ok
(
!
memcmp
(
buffer
,
data
,
9
)
&&
!
buffer
[
9
],
"got wrong buffer.
\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