mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:43:01 +00:00
[SHELL32]: Shell policies should also read what's stored in HKEY_LOCAL_MACHINE ... Actually SHRestricted should call SHRestrictionLookup from shlwapi.dll . I think I'll have to fork this code...
svn path=/trunk/; revision=71804
This commit is contained in:
parent
f715167660
commit
35eeb37cd4
1 changed files with 8 additions and 0 deletions
|
@ -860,7 +860,15 @@ DWORD WINAPI SHRestricted (RESTRICTIONS policy)
|
||||||
|
|
||||||
/* return 0 and don't set the cache if any registry errors occur */
|
/* return 0 and don't set the cache if any registry errors occur */
|
||||||
retval = 0;
|
retval = 0;
|
||||||
|
#ifndef __REACTOS__
|
||||||
if (RegOpenKeyA(HKEY_CURRENT_USER, regstr, &xhkey) == ERROR_SUCCESS)
|
if (RegOpenKeyA(HKEY_CURRENT_USER, regstr, &xhkey) == ERROR_SUCCESS)
|
||||||
|
#else // FIXME: Actually this *MUST* use shlwapi!SHRestrictionLookup()
|
||||||
|
// See http://www.geoffchappell.com/studies/windows/shell/shell32/api/util/shrestricted.htm
|
||||||
|
retval = RegOpenKeyA(HKEY_LOCAL_MACHINE, regstr, &xhkey);
|
||||||
|
if (retval != ERROR_SUCCESS)
|
||||||
|
retval = RegOpenKeyA(HKEY_CURRENT_USER, regstr, &xhkey);
|
||||||
|
if (retval == ERROR_SUCCESS)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
if (RegQueryValueExA(xhkey, p->keystr, NULL, NULL, (LPBYTE)&retval, &datsize) == ERROR_SUCCESS)
|
if (RegQueryValueExA(xhkey, p->keystr, NULL, NULL, (LPBYTE)&retval, &datsize) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue