https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1b1e1baa6e5544010c6b8c89d3e8a7b086ff3923

commit 1b1e1baa6e5544010c6b8c89d3e8a7b086ff3923
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Mon Jun 25 03:04:25 2018 +0900
Commit:     Hermès BÉLUSCA - MAÏTO <[email protected]>
CommitDate: Sun Jun 24 20:04:25 2018 +0200

    [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 8c00df723e..56b32cb20a 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;

Reply via email to