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
f663cc16
Commit
f663cc16
authored
Jan 06, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenum: Do not store full DLL path in the registry.
parent
80296792
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
devenum_main.c
dlls/devenum/devenum_main.c
+1
-9
No files found.
dlls/devenum/devenum_main.c
View file @
f663cc16
...
...
@@ -296,7 +296,6 @@ HRESULT WINAPI DllUnregisterServer(void)
static
HRESULT
register_clsids
(
int
count
,
const
register_info
*
pRegInfo
,
LPCWSTR
pszThreadingModel
)
{
HRESULT
res
=
S_OK
;
WCHAR
dll_module
[
MAX_PATH
];
LPOLESTR
clsidString
;
HKEY
hkeyClsid
;
HKEY
hkeySub
;
...
...
@@ -305,18 +304,11 @@ static HRESULT register_clsids(int count, const register_info * pRegInfo, LPCWST
int
i
;
static
const
WCHAR
wcszInproc32
[]
=
{
'I'
,
'n'
,
'p'
,
'r'
,
'o'
,
'c'
,
'S'
,
'e'
,
'r'
,
'v'
,
'e'
,
'r'
,
'3'
,
'2'
,
0
};
static
const
WCHAR
wcszThreadingModel
[]
=
{
'T'
,
'h'
,
'r'
,
'e'
,
'a'
,
'd'
,
'i'
,
'n'
,
'g'
,
'M'
,
'o'
,
'd'
,
'e'
,
'l'
,
0
};
static
const
WCHAR
dll_module
[]
=
{
'd'
,
'e'
,
'v'
,
'e'
,
'n'
,
'u'
,
'm'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
res
=
RegOpenKeyW
(
HKEY_CLASSES_ROOT
,
clsid_keyname
,
&
hkeyClsid
)
==
ERROR_SUCCESS
?
S_OK
:
E_FAIL
;
TRACE
(
"HModule = %p
\n
"
,
DEVENUM_hInstance
);
i
=
GetModuleFileNameW
(
DEVENUM_hInstance
,
dll_module
,
sizeof
(
dll_module
)
/
sizeof
(
WCHAR
));
if
(
!
i
)
return
HRESULT_FROM_WIN32
(
GetLastError
());
if
(
i
>=
sizeof
(
dll_module
)
/
sizeof
(
WCHAR
))
return
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
if
(
SUCCEEDED
(
res
))
...
...
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