Skip to content

Commit 5797340

Browse files
authored
[SHELL32] Fix broken delete file type verb (reactos#7462)
CORE-19809
1 parent 3095299 commit 5797340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dll/win32/shell32/dialogs/filetypes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ EditTypeDlg_WriteClass(HWND hwndDlg, PEDITTYPE_DIALOG pEditType,
11611161
BOOL OnlyExt = hr != S_OK;
11621162
HKEY hClassKey;
11631163
if (FAILED(hr) || RegCreateKeyExW(HKEY_CLASSES_ROOT, ClassKey, 0, NULL, 0,
1164-
KEY_QUERY_VALUE |KEY_WRITE, NULL,
1164+
KEY_QUERY_VALUE | KEY_WRITE, NULL,
11651165
&hClassKey, NULL) != ERROR_SUCCESS)
11661166
{
11671167
return FALSE;
@@ -1221,7 +1221,7 @@ EditTypeDlg_WriteClass(HWND hwndDlg, PEDITTYPE_DIALOG pEditType,
12211221
}
12221222

12231223
HKEY hShellKey;
1224-
if (RegCreateKeyExW(hClassKey, L"shell", 0, NULL, 0, KEY_WRITE, NULL,
1224+
if (RegCreateKeyExW(hClassKey, L"shell", 0, NULL, 0, KEY_READ | KEY_WRITE, NULL,
12251225
&hShellKey, NULL) != ERROR_SUCCESS)
12261226
{
12271227
RegCloseKey(hClassKey);

0 commit comments

Comments
 (0)