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
d56b3c10
Commit
d56b3c10
authored
Dec 20, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Don't hardcode the system32 directory in registered classes.
parent
959113d2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
regsvr.c
dlls/shell32/regsvr.c
+6
-6
No files found.
dlls/shell32/regsvr.c
View file @
d56b3c10
...
@@ -273,23 +273,23 @@ static HRESULT register_coclasses(struct regsvr_coclass const *list)
...
@@ -273,23 +273,23 @@ static HRESULT register_coclasses(struct regsvr_coclass const *list)
}
}
if
(
list
->
idName
)
{
if
(
list
->
idName
)
{
char
buffer
[
64
]
=
"@%SYSTEMROOT%
\\
system32
\\
shell32.dll,-"
;
char
buffer
[
64
];
sprintf
(
buffer
+
strlen
(
buffer
),
"
%u"
,
list
->
idName
);
sprintf
(
buffer
,
"@shell32.dll,-
%u"
,
list
->
idName
);
res
=
RegSetValueExA
(
clsid_key
,
localized_valuename
,
0
,
REG_
EXPAND_
SZ
,
res
=
RegSetValueExA
(
clsid_key
,
localized_valuename
,
0
,
REG_SZ
,
(
CONST
BYTE
*
)(
buffer
),
strlen
(
buffer
)
+
1
);
(
CONST
BYTE
*
)(
buffer
),
strlen
(
buffer
)
+
1
);
if
(
res
!=
ERROR_SUCCESS
)
goto
error_close_clsid_key
;
if
(
res
!=
ERROR_SUCCESS
)
goto
error_close_clsid_key
;
}
}
if
(
list
->
idDefaultIcon
)
{
if
(
list
->
idDefaultIcon
)
{
HKEY
icon_key
;
HKEY
icon_key
;
char
buffer
[
64
]
=
"%SYSTEMROOT%
\\
system32
\\
shell32.dll,-"
;
char
buffer
[
64
];
res
=
RegCreateKeyExW
(
clsid_key
,
defaulticon_keyname
,
0
,
NULL
,
0
,
res
=
RegCreateKeyExW
(
clsid_key
,
defaulticon_keyname
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WRITE
,
NULL
,
&
icon_key
,
NULL
);
KEY_READ
|
KEY_WRITE
,
NULL
,
&
icon_key
,
NULL
);
if
(
res
!=
ERROR_SUCCESS
)
goto
error_close_clsid_key
;
if
(
res
!=
ERROR_SUCCESS
)
goto
error_close_clsid_key
;
sprintf
(
buffer
+
strlen
(
buffer
),
"
%u"
,
list
->
idDefaultIcon
);
sprintf
(
buffer
,
"shell32.dll,-
%u"
,
list
->
idDefaultIcon
);
res
=
RegSetValueExA
(
icon_key
,
NULL
,
0
,
REG_
EXPAND_
SZ
,
res
=
RegSetValueExA
(
icon_key
,
NULL
,
0
,
REG_SZ
,
(
CONST
BYTE
*
)(
buffer
),
strlen
(
buffer
)
+
1
);
(
CONST
BYTE
*
)(
buffer
),
strlen
(
buffer
)
+
1
);
RegCloseKey
(
icon_key
);
RegCloseKey
(
icon_key
);
if
(
res
!=
ERROR_SUCCESS
)
goto
error_close_clsid_key
;
if
(
res
!=
ERROR_SUCCESS
)
goto
error_close_clsid_key
;
...
...
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