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
9d4fcaf2
Commit
9d4fcaf2
authored
Nov 02, 2012
by
Tatyana Fokina
Committed by
Alexandre Julliard
Nov 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Removed unused parametrs keyname and valuename in COM_RegReadPath.
parent
7d1fa526
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
compobj.c
dlls/ole32/compobj.c
+6
-10
No files found.
dlls/ole32/compobj.c
View file @
9d4fcaf2
...
...
@@ -967,16 +967,14 @@ static HRESULT apartment_getclassobject(struct apartment *apt, LPCWSTR dllpath,
*
* Reads a registry value and expands it when necessary
*/
static
DWORD
COM_RegReadPath
(
HKEY
hkeyroot
,
const
WCHAR
*
keyname
,
const
WCHAR
*
valuename
,
WCHAR
*
dst
,
DWORD
dstlen
)
static
DWORD
COM_RegReadPath
(
HKEY
hkeyroot
,
WCHAR
*
dst
,
DWORD
dstlen
)
{
DWORD
ret
;
HKEY
key
;
DWORD
keytype
;
WCHAR
src
[
MAX_PATH
];
DWORD
dwLength
=
dstlen
*
sizeof
(
WCHAR
);
if
((
ret
=
RegOpenKeyExW
(
hkeyroot
,
keyname
,
0
,
KEY_READ
,
&
key
))
==
ERROR_SUCCESS
)
{
if
(
(
ret
=
RegQueryValueExW
(
key
,
NULL
,
NULL
,
&
keytype
,
(
LPBYTE
)
src
,
&
dwLength
))
==
ERROR_SUCCESS
)
{
if
(
(
ret
=
RegQueryValueExW
(
hkeyroot
,
NULL
,
NULL
,
&
keytype
,
(
LPBYTE
)
src
,
&
dwLength
))
==
ERROR_SUCCESS
)
{
if
(
keytype
==
REG_EXPAND_SZ
)
{
if
(
dstlen
<=
ExpandEnvironmentStringsW
(
src
,
dst
,
dstlen
))
ret
=
ERROR_MORE_DATA
;
}
else
{
...
...
@@ -992,9 +990,7 @@ static DWORD COM_RegReadPath(HKEY hkeyroot, const WCHAR *keyname, const WCHAR *v
}
lstrcpynW
(
dst
,
src
,
dstlen
);
}
}
RegCloseKey
(
key
);
}
}
return
ret
;
}
...
...
@@ -1019,7 +1015,7 @@ static HRESULT apartment_hostobject(struct apartment *apt,
TRACE
(
"clsid %s, iid %s
\n
"
,
debugstr_guid
(
&
params
->
clsid
),
debugstr_guid
(
&
params
->
iid
));
if
(
COM_RegReadPath
(
params
->
hkeydll
,
NULL
,
NULL
,
dllpath
,
ARRAYSIZE
(
dllpath
))
!=
ERROR_SUCCESS
)
if
(
COM_RegReadPath
(
params
->
hkeydll
,
dllpath
,
ARRAYSIZE
(
dllpath
))
!=
ERROR_SUCCESS
)
{
/* failure: CLSID is not found in registry */
WARN
(
"class %s not registered inproc
\n
"
,
debugstr_guid
(
&
params
->
clsid
));
...
...
@@ -2383,7 +2379,7 @@ static HRESULT get_inproc_class_object(APARTMENT *apt, HKEY hkeydll,
else
apartment_threaded
=
!
apt
->
multi_threaded
;
if
(
COM_RegReadPath
(
hkeydll
,
NULL
,
NULL
,
dllpath
,
ARRAYSIZE
(
dllpath
))
!=
ERROR_SUCCESS
)
if
(
COM_RegReadPath
(
hkeydll
,
dllpath
,
ARRAYSIZE
(
dllpath
))
!=
ERROR_SUCCESS
)
{
/* failure: CLSID is not found in registry */
WARN
(
"class %s not registered inproc
\n
"
,
debugstr_guid
(
rclsid
));
...
...
@@ -4299,7 +4295,7 @@ HRESULT Handler_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
{
WCHAR
dllpath
[
MAX_PATH
+
1
];
if
(
COM_RegReadPath
(
hkey
,
NULL
,
NULL
,
dllpath
,
ARRAYSIZE
(
dllpath
))
==
ERROR_SUCCESS
)
if
(
COM_RegReadPath
(
hkey
,
dllpath
,
ARRAYSIZE
(
dllpath
))
==
ERROR_SUCCESS
)
{
static
const
WCHAR
wszOle32
[]
=
{
'o'
,
'l'
,
'e'
,
'3'
,
'2'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
if
(
!
strcmpiW
(
dllpath
,
wszOle32
))
...
...
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