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
c21f5c7c
Commit
c21f5c7c
authored
Jan 09, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Move the Running Object Table test in marshal.c to moniker.c to put it…
ole32: Move the Running Object Table test in marshal.c to moniker.c to put it with the other ROT tests.
parent
beaaf051
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
29 deletions
+15
-29
marshal.c
dlls/ole32/tests/marshal.c
+0
-29
moniker.c
dlls/ole32/tests/moniker.c
+15
-0
No files found.
dlls/ole32/tests/marshal.c
View file @
c21f5c7c
...
...
@@ -2088,34 +2088,6 @@ static void test_out_of_process_com(void)
CloseHandle
(
heventShutdown
);
}
static
void
test_ROT
(
void
)
{
static
const
WCHAR
wszFileName
[]
=
{
'B'
,
'E'
,
'2'
,
'0'
,
'E'
,
'2'
,
'F'
,
'5'
,
'-'
,
'1'
,
'9'
,
'0'
,
'3'
,
'-'
,
'4'
,
'A'
,
'A'
,
'E'
,
'-'
,
'B'
,
'1'
,
'A'
,
'F'
,
'-'
,
'2'
,
'0'
,
'4'
,
'6'
,
'E'
,
'5'
,
'8'
,
'6'
,
'C'
,
'9'
,
'2'
,
'5'
,
0
};
HRESULT
hr
;
IMoniker
*
pMoniker
=
NULL
;
IRunningObjectTable
*
pROT
=
NULL
;
DWORD
dwCookie
;
cLocks
=
0
;
hr
=
CreateFileMoniker
(
wszFileName
,
&
pMoniker
);
ok_ole_success
(
hr
,
CreateClassMoniker
);
hr
=
GetRunningObjectTable
(
0
,
&
pROT
);
ok_ole_success
(
hr
,
GetRunningObjectTable
);
hr
=
IRunningObjectTable_Register
(
pROT
,
0
,
(
IUnknown
*
)
&
Test_ClassFactory
,
pMoniker
,
&
dwCookie
);
ok_ole_success
(
hr
,
IRunningObjectTable_Register
);
IMoniker_Release
(
pMoniker
);
ok_more_than_one_lock
();
hr
=
IRunningObjectTable_Revoke
(
pROT
,
dwCookie
);
ok_ole_success
(
hr
,
IRunningObjectTable_Revoke
);
ok_no_locks
();
}
struct
git_params
{
DWORD
cookie
;
...
...
@@ -2455,7 +2427,6 @@ START_TEST(marshal)
/* doesn't pass with Win9x COM DLLs (even though Essential COM says it should) */
if
(
0
)
test_out_of_process_com
();
test_ROT
();
test_globalinterfacetable
();
test_CoGetInterfaceAndReleaseStream
();
...
...
dlls/ole32/tests/moniker.c
View file @
c21f5c7c
...
...
@@ -584,6 +584,20 @@ static void test_ROT(void)
hr
=
CreateFileMoniker
(
wszFileName
,
&
pMoniker
);
ok_ole_success
(
hr
,
CreateClassMoniker
);
/* test flags: 0 */
hr
=
IRunningObjectTable_Register
(
pROT
,
0
,
(
IUnknown
*
)
&
Test_ClassFactory
,
pMoniker
,
&
dwCookie
);
ok_ole_success
(
hr
,
IRunningObjectTable_Register
);
IMoniker_Release
(
pMoniker
);
ok_more_than_one_lock
();
hr
=
IRunningObjectTable_Revoke
(
pROT
,
dwCookie
);
ok_ole_success
(
hr
,
IRunningObjectTable_Revoke
);
ok_no_locks
();
/* test flags: ROTFLAGS_REGISTRATIONKEEPSALIVE */
hr
=
IRunningObjectTable_Register
(
pROT
,
ROTFLAGS_REGISTRATIONKEEPSALIVE
,
(
IUnknown
*
)
&
Test_ClassFactory
,
pMoniker
,
&
dwCookie
);
ok_ole_success
(
hr
,
IRunningObjectTable_Register
);
...
...
@@ -595,6 +609,7 @@ static void test_ROT(void)
ok_no_locks
();
/* test flags: ROTFLAGS_REGISTRATIONKEEPSALIVE|ROTFLAGS_ALLOWANYCLIENT */
/* only succeeds when process is started by SCM and has LocalService
* or RunAs AppId values */
hr
=
IRunningObjectTable_Register
(
pROT
,
...
...
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