mirror of
https://github.com/reactos/reactos.git
synced 2024-07-07 05:05:09 +00:00
[SHELL32]
- Fix registry value retrieval with RegGetValue (RRF_RT_REG_EXPAND_SZ has a non-obvious functioning: it should be used with NO_EXPAND flag. Otherwise use RRF_RT_REG_SZ to retrieve REG_SZ values, or REG_EXPAND_SZ values with automatic expansion as expected). CORE-9001 #resolve #comment Fixed, thanks for reporting! - Fix whitespace. svn path=/trunk/; revision=66178
This commit is contained in:
parent
b07541cc5d
commit
149e5e961a
|
@ -450,12 +450,12 @@ CDefaultContextMenu::EnumerateDynamicContextHandlerForKey(HKEY hRootKey)
|
|||
if (m_bGroupPolicyActive)
|
||||
{
|
||||
if (RegGetValueW(HKEY_LOCAL_MACHINE,
|
||||
L"Software\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved",
|
||||
pwszClsid,
|
||||
RRF_RT_REG_SZ,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL) == ERROR_SUCCESS)
|
||||
L"Software\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved",
|
||||
pwszClsid,
|
||||
RRF_RT_REG_SZ,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL) == ERROR_SUCCESS)
|
||||
{
|
||||
LoadDynamicContextMenuHandler(hKey, &clsid);
|
||||
}
|
||||
|
|
|
@ -366,12 +366,12 @@ CDrvDefExt::GeneralPageProc(
|
|||
DWORD cbBuf = sizeof(wszBuf);
|
||||
|
||||
if (RegGetValueW(HKEY_LOCAL_MACHINE,
|
||||
L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\CleanupPath",
|
||||
NULL,
|
||||
RRF_RT_REG_SZ,
|
||||
NULL,
|
||||
(PVOID)wszBuf,
|
||||
&cbBuf) == ERROR_SUCCESS)
|
||||
L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\CleanupPath",
|
||||
NULL,
|
||||
RRF_RT_REG_SZ,
|
||||
NULL,
|
||||
(PVOID)wszBuf,
|
||||
&cbBuf) == ERROR_SUCCESS)
|
||||
{
|
||||
WCHAR wszCmd[MAX_PATH];
|
||||
|
||||
|
@ -460,7 +460,7 @@ CDrvDefExt::ExtraPageProc(
|
|||
if (RegGetValueW(HKEY_LOCAL_MACHINE,
|
||||
L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\BackupPath",
|
||||
NULL,
|
||||
RRF_RT_REG_EXPAND_SZ,
|
||||
RRF_RT_REG_SZ,
|
||||
NULL,
|
||||
(PVOID)wszBuf,
|
||||
&cbBuf) == ERROR_SUCCESS)
|
||||
|
|
|
@ -1810,12 +1810,12 @@ HRESULT WINAPI CFSFolder::_LoadDynamicDropTargetHandlerForKey(HKEY hRootKey, LPC
|
|||
if (m_bGroupPolicyActive)
|
||||
{
|
||||
if (RegGetValueW(HKEY_LOCAL_MACHINE,
|
||||
L"Software\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved",
|
||||
pwszClsid,
|
||||
RRF_RT_REG_SZ,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL) == ERROR_SUCCESS)
|
||||
L"Software\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved",
|
||||
pwszClsid,
|
||||
RRF_RT_REG_SZ,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL) == ERROR_SUCCESS)
|
||||
{
|
||||
hr = _LoadDynamicDropTargetHandler(&clsid, pwcsname, ppvOut);
|
||||
}
|
||||
|
|
|
@ -1639,7 +1639,7 @@ HRESULT WINAPI SHEmptyRecycleBinW(HWND hwnd, LPCWSTR pszRootPath, DWORD dwFlags)
|
|||
ret = RegGetValueW(HKEY_CURRENT_USER,
|
||||
L"AppEvents\\Schemes\\Apps\\Explorer\\EmptyRecycleBin\\.Current",
|
||||
NULL,
|
||||
RRF_RT_REG_EXPAND_SZ,
|
||||
RRF_RT_REG_SZ,
|
||||
&dwType,
|
||||
(PVOID)szPath,
|
||||
&dwSize);
|
||||
|
|
Loading…
Reference in a new issue