mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +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
|
@ -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)
|
||||
|
|
|
@ -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