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
e656fc1c
Commit
e656fc1c
authored
May 29, 2002
by
Marcus Meissner
Committed by
Alexandre Julliard
May 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dropped superflous Remote_CoGetClassObject() (entirely contained in
create_marshalled_proxy()).
parent
4664903d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
37 deletions
+3
-37
compobj.c
dlls/ole32/compobj.c
+3
-37
No files found.
dlls/ole32/compobj.c
View file @
e656fc1c
...
...
@@ -1293,42 +1293,6 @@ end:
return
hr
;
}
static
HRESULT
WINAPI
Remote_CoGetClassObject
(
REFCLSID
rclsid
,
DWORD
dwClsContext
,
COSERVERINFO
*
pServerInfo
,
REFIID
iid
,
LPVOID
*
ppv
)
{
HKEY
key
;
char
buf
[
200
];
HRESULT
hres
=
E_UNEXPECTED
;
char
xclsid
[
80
];
WCHAR
dllName
[
MAX_PATH
+
1
];
DWORD
dllNameLen
=
sizeof
(
dllName
);
STARTUPINFOW
sinfo
;
PROCESS_INFORMATION
pinfo
;
WINE_StringFromCLSID
((
LPCLSID
)
rclsid
,
xclsid
);
sprintf
(
buf
,
"CLSID
\\
%s
\\
LocalServer32"
,
xclsid
);
hres
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
buf
,
0
,
KEY_READ
,
&
key
);
if
(
hres
!=
ERROR_SUCCESS
)
return
REGDB_E_CLASSNOTREG
;
memset
(
dllName
,
0
,
sizeof
(
dllName
));
hres
=
RegQueryValueExW
(
key
,
NULL
,
NULL
,
NULL
,(
LPBYTE
)
dllName
,
&
dllNameLen
);
if
(
hres
)
return
REGDB_E_CLASSNOTREG
;
/* FIXME: check retval */
RegCloseKey
(
key
);
TRACE
(
"found LocalServer32 exe %s
\n
"
,
debugstr_w
(
dllName
));
memset
(
&
sinfo
,
0
,
sizeof
(
sinfo
));
sinfo
.
cb
=
sizeof
(
sinfo
);
if
(
!
CreateProcessW
(
NULL
,
dllName
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
sinfo
,
&
pinfo
))
return
E_FAIL
;
return
create_marshalled_proxy
(
rclsid
,
iid
,
ppv
);
}
/***********************************************************************
* CoGetClassObject [COMPOBJ.7]
* CoGetClassObject [OLE32.16]
...
...
@@ -1389,7 +1353,9 @@ HRESULT WINAPI CoGetClassObject(
if
(((
CLSCTX_LOCAL_SERVER
)
&
dwClsContext
)
&&
!
((
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
)
&
dwClsContext
))
return
Remote_CoGetClassObject
(
rclsid
,
dwClsContext
,
pServerInfo
,
iid
,
ppv
);
return
create_marshalled_proxy
(
rclsid
,
iid
,
ppv
);
/* remote servers not supported yet */
if
(
((
CLSCTX_REMOTE_SERVER
)
&
dwClsContext
)
...
...
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