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
d6176429
Commit
d6176429
authored
Jul 22, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Avoid depending on the heap allocation order for the CoGetObjectContext test.
parent
ee59879d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
compobj.c
dlls/ole32/tests/compobj.c
+8
-5
No files found.
dlls/ole32/tests/compobj.c
View file @
d6176429
...
...
@@ -1351,18 +1351,18 @@ static void test_CoGetContextToken(void)
refs
=
IUnknown_AddRef
((
IUnknown
*
)
token
);
ok
(
refs
==
1
,
"Expected 1, got %u
\n
"
,
refs
);
refs
=
IUnknown_Release
((
IUnknown
*
)
token
);
ok
(
refs
==
0
,
"Expected 0, got %u
\n
"
,
refs
);
hr
=
pCoGetObjectContext
(
&
IID_IObjContext
,
(
void
**
)
&
ctx
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
ctx
==
(
IObjContext
*
)
token
,
"Expected interface pointers to be the same
\n
"
);
refs
=
IUnknown_AddRef
((
IUnknown
*
)
ctx
);
ok
(
refs
==
2
,
"Expected 1
, got %u
\n
"
,
refs
);
todo_wine
ok
(
refs
==
3
,
"Expected 3
, got %u
\n
"
,
refs
);
refs
=
IUnknown_Release
((
IUnknown
*
)
ctx
);
ok
(
refs
==
1
,
"Expected 0, got %u
\n
"
,
refs
);
todo_wine
ok
(
refs
==
2
,
"Expected 2, got %u
\n
"
,
refs
);
refs
=
IUnknown_Release
((
IUnknown
*
)
token
);
todo_wine
ok
(
refs
==
1
,
"Expected 1, got %u
\n
"
,
refs
);
/* CoGetContextToken does not add a reference */
token
=
0
;
...
...
@@ -1377,6 +1377,9 @@ static void test_CoGetContextToken(void)
refs
=
IUnknown_Release
((
IUnknown
*
)
ctx
);
ok
(
refs
==
1
,
"Expected 0, got %u
\n
"
,
refs
);
refs
=
IUnknown_Release
((
IUnknown
*
)
ctx
);
ok
(
refs
==
0
,
"Expected 0, got %u
\n
"
,
refs
);
CoUninitialize
();
}
...
...
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