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
e580a91f
Commit
e580a91f
authored
Nov 16, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Nov 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use more restricted registry rights when quering values.
parent
08ab605e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
classes.c
dlls/shell32/classes.c
+5
-5
No files found.
dlls/shell32/classes.c
View file @
e580a91f
...
...
@@ -65,7 +65,7 @@ BOOL HCR_MapTypeToValueW(LPCWSTR szExtension, LPWSTR szFileType, LONG len, BOOL
lstrcpynW
(
szTemp
+
(
bPrependDot
?
1
:
0
),
szExtension
,
MAX_EXTENSION_LENGTH
);
if
(
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
szTemp
,
0
,
0x02000000
,
&
hkey
))
if
(
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
szTemp
,
0
,
KEY_READ
,
&
hkey
))
{
return
FALSE
;
}
...
...
@@ -99,7 +99,7 @@ BOOL HCR_MapTypeToValueA(LPCSTR szExtension, LPSTR szFileType, LONG len, BOOL bP
lstrcpynA
(
szTemp
+
(
bPrependDot
?
1
:
0
),
szExtension
,
MAX_EXTENSION_LENGTH
);
if
(
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
szTemp
,
0
,
0x02000000
,
&
hkey
))
if
(
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
szTemp
,
0
,
KEY_READ
,
&
hkey
))
{
return
FALSE
;
}
...
...
@@ -182,7 +182,7 @@ BOOL HCR_GetExecuteCommandW( HKEY hkeyClass, LPCWSTR szClass, LPCWSTR szVerb, LP
TRACE
(
"%p %s %s %p
\n
"
,
hkeyClass
,
debugstr_w
(
szClass
),
debugstr_w
(
szVerb
),
szDest
);
if
(
szClass
)
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
szClass
,
0
,
0x02000000
,
&
hkeyClass
);
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
szClass
,
0
,
KEY_READ
,
&
hkeyClass
);
if
(
!
hkeyClass
)
return
FALSE
;
ret
=
FALSE
;
...
...
@@ -280,7 +280,7 @@ BOOL HCR_GetDefaultIconW(LPCWSTR szClass, LPWSTR szDest, DWORD len, int* picon_i
lstrcpynW
(
sTemp
,
szClass
,
MAX_PATH
);
lstrcatW
(
sTemp
,
swDefaultIcon
);
if
(
!
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
sTemp
,
0
,
0x02000000
,
&
hkey
))
if
(
!
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
sTemp
,
0
,
KEY_READ
,
&
hkey
))
{
ret
=
HCR_RegGetDefaultIconW
(
hkey
,
szDest
,
len
,
picon_idx
);
RegCloseKey
(
hkey
);
...
...
@@ -304,7 +304,7 @@ BOOL HCR_GetDefaultIconA(LPCSTR szClass, LPSTR szDest, DWORD len, int* picon_idx
sprintf
(
sTemp
,
"%s
\\
DefaultIcon"
,
szClass
);
if
(
!
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
sTemp
,
0
,
0x02000000
,
&
hkey
))
if
(
!
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
sTemp
,
0
,
KEY_READ
,
&
hkey
))
{
ret
=
HCR_RegGetDefaultIconA
(
hkey
,
szDest
,
len
,
picon_idx
);
RegCloseKey
(
hkey
);
...
...
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