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
f9f3b21f
Commit
f9f3b21f
authored
Jul 04, 2014
by
Erich E. Hoover
Committed by
Alexandre Julliard
Jul 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Implement RegSetKeySecurity on top of NtSetSecurityObject.
parent
113a2abb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
registry.c
dlls/advapi32/registry.c
+2
-2
registry.c
dlls/advapi32/tests/registry.c
+15
-15
No files found.
dlls/advapi32/registry.c
View file @
f9f3b21f
...
...
@@ -2488,9 +2488,9 @@ LSTATUS WINAPI RegSetKeySecurity( HKEY hkey, SECURITY_INFORMATION SecurityInfo,
if
(
!
pSecurityDesc
)
return
ERROR_INVALID_PARAMETER
;
FIXME
(
":(%p,%d,%p): stub
\n
"
,
hkey
,
SecurityInfo
,
pSecurityDesc
)
;
if
(
!
(
hkey
=
get_special_root_hkey
(
hkey
,
0
)))
return
ERROR_INVALID_HANDLE
;
return
ERROR_SUCCESS
;
return
RtlNtStatusToDosError
(
NtSetSecurityObject
(
hkey
,
SecurityInfo
,
pSecurityDesc
)
)
;
}
...
...
dlls/advapi32/tests/registry.c
View file @
f9f3b21f
...
...
@@ -1103,14 +1103,15 @@ static void test_reg_open_key(void)
}
else
{
/* The "sanctioned" methods of setting a registry ACL aren't implemented in Wine. */
bRet
=
SetKernelObjectSecurity
(
hkRoot64
,
DACL_SECURITY_INFORMATION
,
sd
);
ok
(
bRet
==
TRUE
,
"Expected SetKernelObjectSecurity to return TRUE, got %d, last error %u
\n
"
,
bRet
,
GetLastError
());
LONG
error
;
bRet
=
SetKernelObjectSecurity
(
hkRoot32
,
DACL_SECURITY_INFORMATION
,
sd
);
ok
(
bRet
==
TRUE
,
"Expected SetKernelObjectSecurity to return TRUE, got %d, last error %u
\n
"
,
bRet
,
GetLastError
());
error
=
RegSetKeySecurity
(
hkRoot64
,
DACL_SECURITY_INFORMATION
,
sd
);
ok
(
error
==
ERROR_SUCCESS
,
"Expected RegSetKeySecurity to return success, got error %u
\n
"
,
error
);
bRet
=
RegSetKeySecurity
(
hkRoot32
,
DACL_SECURITY_INFORMATION
,
sd
);
ok
(
error
==
ERROR_SUCCESS
,
"Expected RegSetKeySecurity to return success, got error %u
\n
"
,
error
);
hkResult
=
NULL
;
ret
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine"
,
0
,
KEY_WOW64_64KEY
|
KEY_READ
,
&
hkResult
);
...
...
@@ -1264,14 +1265,13 @@ static void test_reg_create_key(void)
}
else
{
/* The "sanctioned" methods of setting a registry ACL aren't implemented in Wine. */
bRet
=
SetKernelObjectSecurity
(
hkRoot64
,
DACL_SECURITY_INFORMATION
,
sd
);
ok
(
bRet
==
TRUE
,
"Expected SetKernelObjectSecurity to return TRUE, got %d, last error %u
\n
"
,
bRet
,
GetLastError
());
bRet
=
SetKernelObjectSecurity
(
hkRoot32
,
DACL_SECURITY_INFORMATION
,
sd
);
ok
(
bRet
==
TRUE
,
"Expected SetKernelObjectSecurity to return TRUE, got %d, last error %u
\n
"
,
bRet
,
GetLastError
());
ret
=
RegSetKeySecurity
(
hkRoot64
,
DACL_SECURITY_INFORMATION
,
sd
);
ok
(
ret
==
ERROR_SUCCESS
,
"Expected RegSetKeySecurity to return success, got error %u
\n
"
,
ret
);
ret
=
RegSetKeySecurity
(
hkRoot32
,
DACL_SECURITY_INFORMATION
,
sd
);
ok
(
ret
==
ERROR_SUCCESS
,
"Expected RegSetKeySecurity to return success, got error %u
\n
"
,
ret
);
hkey1
=
NULL
;
ret
=
RegCreateKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine"
,
0
,
NULL
,
0
,
...
...
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