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
28e17a75
Commit
28e17a75
authored
Jun 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Don't use sizeof in ok() to avoid printf format warnings.
parent
cba2c847
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
marshal.c
dlls/ole32/tests/marshal.c
+2
-2
moniker.c
dlls/ole32/tests/moniker.c
+3
-3
No files found.
dlls/ole32/tests/marshal.c
View file @
28e17a75
...
...
@@ -1981,7 +1981,7 @@ static void test_marshal_CLIPFORMAT(void)
CLIPFORMAT
cf2
;
size
=
CLIPFORMAT_UserSize
(
&
flags
,
0
,
&
cf
);
ok
(
size
==
sizeof
(
*
wirecf
)
+
sizeof
(
cf_marshaled
),
"
Size should be %d, instead of %ld
\n
"
,
sizeof
(
*
wirecf
)
+
sizeof
(
cf_marshaled
)
,
size
);
ok
(
size
==
sizeof
(
*
wirecf
)
+
sizeof
(
cf_marshaled
),
"
Wrong size %ld
\n
"
,
size
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
CLIPFORMAT_UserMarshal
(
&
flags
,
buffer
,
&
cf
);
...
...
@@ -2007,7 +2007,7 @@ static void test_marshal_HWND(void)
wireHWND
wirehwnd
;
size
=
HWND_UserSize
(
&
flags
,
0
,
&
hwnd
);
ok
(
size
==
sizeof
(
*
wirehwnd
),
"
Size should be %d, instead of %ld
\n
"
,
sizeof
(
*
wirehwnd
)
,
size
);
ok
(
size
==
sizeof
(
*
wirehwnd
),
"
Wrong size %ld
\n
"
,
size
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
HWND_UserMarshal
(
&
flags
,
buffer
,
&
hwnd
);
...
...
dlls/ole32/tests/moniker.c
View file @
28e17a75
...
...
@@ -304,9 +304,9 @@ static const BYTE expected_gc_moniker_comparison_data[] =
static
void
test_moniker
(
const
char
*
testname
,
IMoniker
*
moniker
,
const
BYTE
*
expected_moniker_marshal_data
,
size_
t
sizeof_expected_moniker_marshal_data
,
const
BYTE
*
expected_moniker_saved_data
,
size_
t
sizeof_expected_moniker_saved_data
,
const
BYTE
*
expected_moniker_comparison_data
,
size_
t
sizeof_expected_moniker_comparison_data
,
const
BYTE
*
expected_moniker_marshal_data
,
unsigned
in
t
sizeof_expected_moniker_marshal_data
,
const
BYTE
*
expected_moniker_saved_data
,
unsigned
in
t
sizeof_expected_moniker_saved_data
,
const
BYTE
*
expected_moniker_comparison_data
,
unsigned
in
t
sizeof_expected_moniker_comparison_data
,
LPCWSTR
expected_display_name
)
{
IStream
*
stream
;
...
...
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