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
6f318482
Commit
6f318482
authored
Jan 08, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Avoid printing pointer differences in traces.
parent
6500bb0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
safearray.c
dlls/oleaut32/tests/safearray.c
+7
-4
No files found.
dlls/oleaut32/tests/safearray.c
View file @
6f318482
...
...
@@ -275,7 +275,7 @@ static struct {
static
void
test_safearray
(
void
)
{
SAFEARRAY
*
a
,
b
,
*
c
;
unsigned
int
i
;
unsigned
int
i
,
diff
;
LONG
indices
[
2
];
HRESULT
hres
;
SAFEARRAYBOUND
bound
,
bounds
[
2
];
...
...
@@ -434,19 +434,22 @@ static void test_safearray(void)
indices
[
1
]
=
23
;
hres
=
SafeArrayPtrOfIndex
(
a
,
indices
,
(
void
**
)
&
ptr2
);
ok
(
S_OK
==
hres
,
"SAPOI failed [1,23], hres 0x%x
\n
"
,
hres
);
ok
(
ptr2
-
ptr1
==
8
,
"ptr difference is not 8, but %d (%p vs %p)
\n
"
,
ptr2
-
ptr1
,
ptr2
,
ptr1
);
diff
=
ptr2
-
ptr1
;
ok
(
diff
==
8
,
"ptr difference is not 8, but %d (%p vs %p)
\n
"
,
diff
,
ptr2
,
ptr1
);
indices
[
0
]
=
3
;
indices
[
1
]
=
24
;
hres
=
SafeArrayPtrOfIndex
(
a
,
indices
,
(
void
**
)
&
ptr2
);
ok
(
S_OK
==
hres
,
"SAPOI failed [5,24], hres 0x%x
\n
"
,
hres
);
ok
(
ptr2
-
ptr1
==
176
,
"ptr difference is not 176, but %d (%p vs %p)
\n
"
,
ptr2
-
ptr1
,
ptr2
,
ptr1
);
diff
=
ptr2
-
ptr1
;
ok
(
diff
==
176
,
"ptr difference is not 176, but %d (%p vs %p)
\n
"
,
diff
,
ptr2
,
ptr1
);
indices
[
0
]
=
20
;
indices
[
1
]
=
23
;
hres
=
SafeArrayPtrOfIndex
(
a
,
indices
,
(
void
**
)
&
ptr2
);
ok
(
S_OK
==
hres
,
"SAPOI failed [20,23], hres 0x%x
\n
"
,
hres
);
ok
(
ptr2
-
ptr1
==
76
,
"ptr difference is not 76, but %d (%p vs %p)
\n
"
,
ptr2
-
ptr1
,
ptr2
,
ptr1
);
diff
=
ptr2
-
ptr1
;
ok
(
diff
==
76
,
"ptr difference is not 76, but %d (%p vs %p)
\n
"
,
diff
,
ptr2
,
ptr1
);
hres
=
SafeArrayUnaccessData
(
a
);
ok
(
S_OK
==
hres
,
"SAUAD failed with 0x%x
\n
"
,
hres
);
...
...
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