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
a104766b
Commit
a104766b
authored
Aug 18, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Don't release the token object since it doesn't have a proper ref count.
parent
9b2e414e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
compobj.c
dlls/ole32/tests/compobj.c
+2
-3
No files found.
dlls/ole32/tests/compobj.c
View file @
a104766b
...
...
@@ -1325,7 +1325,6 @@ static void test_CoGetContextToken(void)
token
=
0
;
hr
=
pCoGetContextToken
(
&
token
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got 0x%08x
\n
"
,
hr
);
IUnknown_Release
((
IUnknown
*
)
token
);
SetEvent
(
info
.
stop
);
ok
(
!
WaitForSingleObject
(
thread
,
10000
),
"wait timed out
\n
"
);
...
...
@@ -1349,7 +1348,7 @@ static void test_CoGetContextToken(void)
ok
(
token
,
"Expected token != 0
\n
"
);
refs
=
IUnknown_AddRef
((
IUnknown
*
)
token
);
ok
(
refs
==
1
,
"Expected 1, got %u
\n
"
,
refs
);
todo_wine
ok
(
refs
==
1
,
"Expected 1, got %u
\n
"
,
refs
);
hr
=
pCoGetObjectContext
(
&
IID_IObjContext
,
(
void
**
)
&
ctx
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got 0x%08x
\n
"
,
hr
);
...
...
@@ -1362,7 +1361,7 @@ static void test_CoGetContextToken(void)
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
);
ok
(
refs
==
1
,
"Expected 1, got %u
\n
"
,
refs
);
/* CoGetContextToken does not add a reference */
token
=
0
;
...
...
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