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
d963e97f
Commit
d963e97f
authored
Nov 20, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Objects registered as local servers don't need to support IClassFactory.
parent
377159c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
compobj.c
dlls/ole32/compobj.c
+1
-1
compobj.c
dlls/ole32/tests/compobj.c
+8
-0
No files found.
dlls/ole32/compobj.c
View file @
d963e97f
...
...
@@ -2130,7 +2130,7 @@ HRESULT WINAPI CoRegisterClassObject(
FIXME
(
"Failed to create stream on hglobal, %x
\n
"
,
hr
);
return
hr
;
}
hr
=
CoMarshalInterface
(
newClass
->
pMarshaledData
,
&
IID_I
ClassFactory
,
hr
=
CoMarshalInterface
(
newClass
->
pMarshaledData
,
&
IID_I
Unknown
,
newClass
->
classObject
,
MSHCTX_LOCAL
,
NULL
,
MSHLFLAGS_TABLESTRONG
);
if
(
hr
)
{
...
...
dlls/ole32/tests/compobj.c
View file @
d963e97f
...
...
@@ -837,6 +837,14 @@ static void test_CoRegisterClassObject(void)
hr
=
CoRevokeClassObject
(
cookie
);
ok_ole_success
(
hr
,
"CoRevokeClassObject"
);
/* test whether an object that doesn't support IClassFactory can be
* registered for CLSCTX_LOCAL_SERVER */
hr
=
CoRegisterClassObject
(
&
CLSID_WineOOPTest
,
&
Test_Unknown
,
CLSCTX_LOCAL_SERVER
,
REGCLS_SINGLEUSE
,
&
cookie
);
ok_ole_success
(
hr
,
"CoRegisterClassObject"
);
hr
=
CoRevokeClassObject
(
cookie
);
ok_ole_success
(
hr
,
"CoRevokeClassObject"
);
/* test whether registered class becomes invalid when apartment is destroyed */
hr
=
CoRegisterClassObject
(
&
CLSID_WineOOPTest
,
(
IUnknown
*
)
&
Test_ClassFactory
,
CLSCTX_INPROC_SERVER
,
REGCLS_SINGLEUSE
,
&
cookie
);
...
...
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