From 1b1e1baa6e5544010c6b8c89d3e8a7b086ff3923 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Mon, 25 Jun 2018 03:04:25 +0900 Subject: [PATCH] [SHELL32] Implement Folder Options File Types 'Change' button (#629) CORE-12906 --- dll/win32/shell32/dialogs/filetypes.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dll/win32/shell32/dialogs/filetypes.cpp b/dll/win32/shell32/dialogs/filetypes.cpp index 8c00df723ec..56b32cb20aa 100644 --- a/dll/win32/shell32/dialogs/filetypes.cpp +++ b/dll/win32/shell32/dialogs/filetypes.cpp @@ -1704,8 +1704,10 @@ FolderOptionsFileTypesDlg( pEntry = FileTypesDlg_GetEntry(GetDlgItem(hwndDlg, IDC_FILETYPES_LISTVIEW)); if (pEntry) { + ZeroMemory(&Info, sizeof(Info)); Info.oaifInFlags = OAIF_ALLOW_REGISTRATION | OAIF_REGISTER_EXT; - Info.pcszClass = pEntry->FileExtension; + Info.pcszFile = pEntry->FileExtension; + Info.pcszClass = NULL; SHOpenWithDialog(hwndDlg, &Info); } break; -- 2.17.1