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
a456e641
Commit
a456e641
authored
Mar 05, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Avoid sizeof in traces.
parent
0ecd8daa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
hglobalstream.c
dlls/ole32/tests/hglobalstream.c
+5
-5
No files found.
dlls/ole32/tests/hglobalstream.c
View file @
a456e641
...
...
@@ -88,7 +88,7 @@ static void test_streamonhglobal(IStream *pStream)
ll
.
u
.
LowPart
=
0
;
hr
=
IStream_Seek
(
pStream
,
ll
,
STREAM_SEEK_CUR
,
&
ull
);
ok_ole_success
(
hr
,
"IStream_Seek"
);
ok
(
ull
.
u
.
LowPart
==
sizeof
(
data
),
"
should have set LowPart to %d instead of %d
\n
"
,
sizeof
(
data
)
,
ull
.
u
.
LowPart
);
ok
(
ull
.
u
.
LowPart
==
sizeof
(
data
),
"
LowPart set to %d
\n
"
,
ull
.
u
.
LowPart
);
ok
(
ull
.
u
.
HighPart
==
0
,
"should have set HighPart to 0 instead of %d
\n
"
,
ull
.
u
.
HighPart
);
/* IStream_Seek -- invalid seek argument */
...
...
@@ -98,7 +98,7 @@ static void test_streamonhglobal(IStream *pStream)
ll
.
u
.
LowPart
=
123
;
hr
=
IStream_Seek
(
pStream
,
ll
,
STREAM_SEEK_END
+
1
,
&
ull
);
ok
(
hr
==
STG_E_SEEKERROR
,
"IStream_Seek should have returned STG_E_SEEKERROR instead of 0x%08x
\n
"
,
hr
);
ok
(
ull
.
u
.
LowPart
==
sizeof
(
data
),
"
should have set LowPart to %d instead of %d
\n
"
,
sizeof
(
data
)
,
ull
.
u
.
LowPart
);
ok
(
ull
.
u
.
LowPart
==
sizeof
(
data
),
"
LowPart set to %d
\n
"
,
ull
.
u
.
LowPart
);
ok
(
ull
.
u
.
HighPart
==
0
,
"should not have changed HighPart, got %d
\n
"
,
ull
.
u
.
HighPart
);
/* IStream_Seek -- valid position argument (seek to beginning) */
...
...
@@ -133,7 +133,7 @@ static void test_streamonhglobal(IStream *pStream)
ll
.
u
.
LowPart
=
0
;
hr
=
IStream_Seek
(
pStream
,
ll
,
STREAM_SEEK_CUR
,
&
ull
);
ok_ole_success
(
hr
,
"IStream_Seek"
);
ok
(
ull
.
u
.
LowPart
==
sizeof
(
data
),
"
should have set LowPart to %d instead of %d
\n
"
,
sizeof
(
data
)
,
ull
.
u
.
LowPart
);
ok
(
ull
.
u
.
LowPart
==
sizeof
(
data
),
"
LowPart set to %d
\n
"
,
ull
.
u
.
LowPart
);
ok
(
ull
.
u
.
HighPart
==
0
,
"should have set HighPart to 0 instead of %d
\n
"
,
ull
.
u
.
HighPart
);
/* IStream_Seek -- ignore HighPart in the move value (seek to beginning) */
...
...
@@ -163,7 +163,7 @@ static void test_streamonhglobal(IStream *pStream)
ll
.
u
.
LowPart
=
0x80000000
;
hr
=
IStream_Seek
(
pStream
,
ll
,
STREAM_SEEK_CUR
,
&
ull
);
ok
(
hr
==
STG_E_SEEKERROR
,
"IStream_Seek should have returned STG_E_SEEKERROR instead of 0x%08x
\n
"
,
hr
);
ok
(
ull
.
u
.
LowPart
==
sizeof
(
data
),
"
should have set LowPart to %d instead of %d
\n
"
,
sizeof
(
data
)
,
ull
.
u
.
LowPart
);
ok
(
ull
.
u
.
LowPart
==
sizeof
(
data
),
"
LowPart set to %d
\n
"
,
ull
.
u
.
LowPart
);
ok
(
ull
.
u
.
HighPart
==
0
,
"should have set HighPart to 0 instead of %d
\n
"
,
ull
.
u
.
HighPart
);
/* IStream_Seek -- invalid LowPart value (seek to beginning) */
...
...
@@ -178,7 +178,7 @@ static void test_streamonhglobal(IStream *pStream)
ll
.
u
.
LowPart
=
0x80000000
;
hr
=
IStream_Seek
(
pStream
,
ll
,
STREAM_SEEK_SET
,
&
ull
);
ok
(
hr
==
STG_E_SEEKERROR
,
"IStream_Seek should have returned STG_E_SEEKERROR instead of 0x%08x
\n
"
,
hr
);
ok
(
ull
.
u
.
LowPart
==
sizeof
(
data
),
"
should have set LowPart to %d instead of %d
\n
"
,
sizeof
(
data
)
,
ull
.
u
.
LowPart
);
ok
(
ull
.
u
.
LowPart
==
sizeof
(
data
),
"
LowPart set to %d
\n
"
,
ull
.
u
.
LowPart
);
ok
(
ull
.
u
.
HighPart
==
0
,
"should have set HighPart to 0 instead of %d
\n
"
,
ull
.
u
.
HighPart
);
/* IStream_Seek -- valid LowPart value (seek to beginning) */
...
...
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