mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 08:13:00 +00:00
parent
30952992e1
commit
5797340164
1 changed files with 2 additions and 2 deletions
|
@ -1161,7 +1161,7 @@ EditTypeDlg_WriteClass(HWND hwndDlg, PEDITTYPE_DIALOG pEditType,
|
||||||
BOOL OnlyExt = hr != S_OK;
|
BOOL OnlyExt = hr != S_OK;
|
||||||
HKEY hClassKey;
|
HKEY hClassKey;
|
||||||
if (FAILED(hr) || RegCreateKeyExW(HKEY_CLASSES_ROOT, ClassKey, 0, NULL, 0,
|
if (FAILED(hr) || RegCreateKeyExW(HKEY_CLASSES_ROOT, ClassKey, 0, NULL, 0,
|
||||||
KEY_QUERY_VALUE |KEY_WRITE, NULL,
|
KEY_QUERY_VALUE | KEY_WRITE, NULL,
|
||||||
&hClassKey, NULL) != ERROR_SUCCESS)
|
&hClassKey, NULL) != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -1221,7 +1221,7 @@ EditTypeDlg_WriteClass(HWND hwndDlg, PEDITTYPE_DIALOG pEditType,
|
||||||
}
|
}
|
||||||
|
|
||||||
HKEY hShellKey;
|
HKEY hShellKey;
|
||||||
if (RegCreateKeyExW(hClassKey, L"shell", 0, NULL, 0, KEY_WRITE, NULL,
|
if (RegCreateKeyExW(hClassKey, L"shell", 0, NULL, 0, KEY_READ | KEY_WRITE, NULL,
|
||||||
&hShellKey, NULL) != ERROR_SUCCESS)
|
&hShellKey, NULL) != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
RegCloseKey(hClassKey);
|
RegCloseKey(hClassKey);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue