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
bcf0be6a
Commit
bcf0be6a
authored
Nov 23, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add test for CoLockObjectExternal with fLastUnlockReleases as FALSE.
parent
2f0373d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
1 deletion
+37
-1
marshal.c
dlls/ole32/tests/marshal.c
+37
-1
No files found.
dlls/ole32/tests/marshal.c
View file @
bcf0be6a
...
...
@@ -1257,7 +1257,7 @@ static void test_lock_object_external(void)
IStream_Seek
(
pStream
,
ullZero
,
STREAM_SEEK_SET
,
NULL
);
hr
=
CoReleaseMarshalData
(
pStream
);
ok_ole_success
(
hr
,
CoReleaseMarshalData
);
IStream_
Release
(
pStream
);
IStream_
Seek
(
pStream
,
ullZero
,
STREAM_SEEK_SET
,
NULL
);
ok_more_than_one_lock
();
...
...
@@ -1268,6 +1268,42 @@ static void test_lock_object_external(void)
CoLockObjectExternal
((
IUnknown
*
)
&
Test_ClassFactory
,
FALSE
,
TRUE
);
ok_no_locks
();
/* test CoLockObjectExternal releases reference to object with
* fLastUnlockReleases as TRUE and there are only strong references on
* the object */
CoLockObjectExternal
((
IUnknown
*
)
&
Test_ClassFactory
,
TRUE
,
FALSE
);
ok_more_than_one_lock
();
CoLockObjectExternal
((
IUnknown
*
)
&
Test_ClassFactory
,
FALSE
,
FALSE
);
todo_wine
ok_no_locks
();
if
(
cLocks
>
0
)
CoDisconnectObject
((
IUnknown
*
)
&
Test_ClassFactory
,
0
);
/* test CoLockObjectExternal doesn't release the last reference to an
* object with fLastUnlockReleases as TRUE and there is a weak reference
* on the object */
hr
=
CoMarshalInterface
(
pStream
,
&
IID_IClassFactory
,
(
IUnknown
*
)
&
Test_ClassFactory
,
MSHCTX_INPROC
,
NULL
,
MSHLFLAGS_TABLEWEAK
);
ok_ole_success
(
hr
,
CoMarshalInterface
);
ok_more_than_one_lock
();
CoLockObjectExternal
((
IUnknown
*
)
&
Test_ClassFactory
,
TRUE
,
FALSE
);
ok_more_than_one_lock
();
CoLockObjectExternal
((
IUnknown
*
)
&
Test_ClassFactory
,
FALSE
,
FALSE
);
ok_more_than_one_lock
();
CoDisconnectObject
((
IUnknown
*
)
&
Test_ClassFactory
,
0
);
ok_no_locks
();
IStream_Release
(
pStream
);
}
/* tests disconnecting stubs */
...
...
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