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
93734bcd
Commit
93734bcd
authored
Nov 15, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified reg handling in CoGetClassObject, do not use RegQueryValueW.
parent
8f1e39f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
compobj.c
dlls/ole32/compobj.c
+7
-17
No files found.
dlls/ole32/compobj.c
View file @
93734bcd
...
...
@@ -1200,31 +1200,21 @@ HRESULT WINAPI CoGetClassObject(REFCLSID rclsid, DWORD dwClsContext,
}
if
((
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
)
&
dwClsContext
)
{
HKEY
CLSIDkey
,
key
;
WCHAR
valname
[]
=
{
'I'
,
'n'
,
'p'
,
'r'
,
'o'
,
'c'
,
'S'
,
'e'
,
'r'
,
'v'
,
'e'
,
'r'
,
'3'
,
'2'
,
0
};
HKEY
key
;
char
buf
[
200
];
/* lookup CLSID in registry key HKCR/CLSID */
hres
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
"CLSID"
,
0
,
KEY_READ
,
&
CLSIDkey
);
sprintf
(
buf
,
"CLSID
\\
%s
\\
InprocServer32"
,
xclsid
);
hres
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
buf
,
0
,
KEY_READ
,
&
key
);
if
(
hres
!=
ERROR_SUCCESS
)
return
REGDB_E_READREGDB
;
hres
=
RegOpenKeyExA
(
CLSIDkey
,
xclsid
,
0
,
KEY_QUERY_VALUE
,
&
key
);
if
(
hres
!=
ERROR_SUCCESS
)
{
RegCloseKey
(
CLSIDkey
);
return
REGDB_E_CLASSNOTREG
;
}
memset
(
dllName
,
0
,
sizeof
(
dllName
));
hres
=
RegQueryValueW
(
key
,
valname
,
dllName
,
&
dllNameLen
);
if
(
hres
)
{
ERR
(
"RegQueryValue of %s failed with hres %lx
\n
"
,
debugstr_w
(
dllName
),
hres
);
hres
=
RegQueryValueExW
(
key
,
NULL
,
NULL
,
NULL
,(
LPBYTE
)
dllName
,
&
dllNameLen
);
if
(
hres
)
return
REGDB_E_CLASSNOTREG
;
/* FIXME: check retval */
}
RegCloseKey
(
key
);
RegCloseKey
(
CLSIDkey
);
if
(
hres
!=
ERROR_SUCCESS
)
return
REGDB_E_READREGDB
;
TRACE
(
"found InprocServer32 dll %s
\n
"
,
debugstr_w
(
dllName
));
/* open dll, call DllGetClassObject */
...
...
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