https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5797340164543d77212b7…
commit 5797340164543d77212b7651da863967e36bf767
Author: Whindmar Saksit <whindsaks(a)proton.me>
AuthorDate: Fri Oct 18 14:42:08 2024 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Oct 18 14:42:08 2024 +0200
[SHELL32] Fix broken delete file type verb (#7462)
CORE-19809
---
dll/win32/shell32/dialogs/filetypes.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/win32/shell32/dialogs/filetypes.cpp
b/dll/win32/shell32/dialogs/filetypes.cpp
index c02de0eee10..6a958b5cc1c 100644
--- a/dll/win32/shell32/dialogs/filetypes.cpp
+++ b/dll/win32/shell32/dialogs/filetypes.cpp
@@ -1161,7 +1161,7 @@ EditTypeDlg_WriteClass(HWND hwndDlg, PEDITTYPE_DIALOG pEditType,
BOOL OnlyExt = hr != S_OK;
HKEY hClassKey;
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)
{
return FALSE;
@@ -1221,7 +1221,7 @@ EditTypeDlg_WriteClass(HWND hwndDlg, PEDITTYPE_DIALOG pEditType,
}
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)
{
RegCloseKey(hClassKey);