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
d36c8e9d
Commit
d36c8e9d
authored
May 29, 2002
by
Bill Medland
Committed by
Alexandre Julliard
May 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure that an out-of-process COM object is started only once.
Allow out-of-process COM objects if request is for in-or-out-of-process.
parent
6a5ba8fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
36 deletions
+6
-36
compobj.c
dlls/ole32/compobj.c
+4
-34
rpc.c
dlls/ole32/rpc.c
+2
-2
No files found.
dlls/ole32/compobj.c
View file @
d36c8e9d
...
...
@@ -1315,8 +1315,6 @@ HRESULT WINAPI CoGetClassObject(
typedef
HRESULT
(
CALLBACK
*
DllGetClassObjectFunc
)(
REFCLSID
clsid
,
REFIID
iid
,
LPVOID
*
ppv
);
DllGetClassObjectFunc
DllGetClassObject
;
HKEY
key
;
char
buf
[
200
];
WINE_StringFromCLSID
((
LPCLSID
)
rclsid
,
xclsid
);
...
...
@@ -1351,20 +1349,6 @@ HRESULT WINAPI CoGetClassObject(
return
hres
;
}
if
(((
CLSCTX_LOCAL_SERVER
)
&
dwClsContext
)
&&
!
((
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
)
&
dwClsContext
))
return
create_marshalled_proxy
(
rclsid
,
iid
,
ppv
);
/* remote servers not supported yet */
if
(
((
CLSCTX_REMOTE_SERVER
)
&
dwClsContext
)
&&
!
((
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
)
&
dwClsContext
)
){
FIXME
(
"CLSCTX_REMOTE_SERVER not supported!
\n
"
);
return
E_NOINTERFACE
;
}
if
((
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
)
&
dwClsContext
)
{
HKEY
key
;
char
buf
[
200
];
...
...
@@ -1400,31 +1384,17 @@ HRESULT WINAPI CoGetClassObject(
}
/* Finally try out of process */
/* out of process and remote servers not supported yet */
/* Next try out of process */
if
(
CLSCTX_LOCAL_SERVER
&
dwClsContext
)
{
memset
(
ProviderName
,
0
,
sizeof
(
ProviderName
));
sprintf
(
buf
,
"CLSID
\\
%s
\\
LocalServer32"
,
xclsid
);
if
(((
hres
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
buf
,
0
,
KEY_READ
,
&
key
))
!=
ERROR_SUCCESS
)
||
((
hres
=
RegQueryValueExW
(
key
,
NULL
,
NULL
,
NULL
,(
LPBYTE
)
ProviderName
,
&
ProviderNameLen
)),
RegCloseKey
(
key
),
hres
!=
ERROR_SUCCESS
))
{
hres
=
REGDB_E_CLASSNOTREG
;
}
else
{
/* CO_E_APPNOTFOUND if no exe */
FIXME
(
"CLSCTX_LOCAL_SERVER %s registered but not yet supported!
\n
"
,
debugstr_w
(
ProviderName
));
hres
=
E_ACCESSDENIED
;
}
return
create_marshalled_proxy
(
rclsid
,
iid
,
ppv
);
}
/* Finally try remote */
if
(
CLSCTX_REMOTE_SERVER
&
dwClsContext
)
{
FIXME
(
"CLSCTX_REMOTE_SERVER not supported
\n
"
);
hres
=
E_
ACCESSDENIED
;
hres
=
E_
NOINTERFACE
;
}
return
hres
;
...
...
dlls/ole32/rpc.c
View file @
d36c8e9d
...
...
@@ -479,13 +479,13 @@ create_server(REFCLSID rclsid) {
hres
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
buf
,
0
,
KEY_READ
,
&
key
);
if
(
hres
!=
ERROR_SUCCESS
)
return
REGDB_E_
CLASSNOTREG
;
return
REGDB_E_
READREGDB
;
/* Probably */
memset
(
dllName
,
0
,
sizeof
(
dllName
));
hres
=
RegQueryValueExW
(
key
,
NULL
,
NULL
,
NULL
,(
LPBYTE
)
dllName
,
&
dllNameLen
);
RegCloseKey
(
key
);
if
(
hres
)
return
REGDB_E_CLASSNOTREG
;
/* FIXME: check retval */
RegCloseKey
(
key
);
memset
(
&
sinfo
,
0
,
sizeof
(
sinfo
));
sinfo
.
cb
=
sizeof
(
sinfo
);
if
(
!
CreateProcessW
(
NULL
,
dllName
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
sinfo
,
&
pinfo
))
...
...
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