[COMDLG32] Follow up of #1514 CORE-7114 Don't load asterisk extension
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sat, 27 Apr 2019 23:43:24 +0000 (08:43 +0900)
committerKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sat, 27 Apr 2019 23:44:52 +0000 (08:44 +0900)
dll/win32/comdlg32/filedlg.c

index eed9f59..76d18bf 100644 (file)
@@ -2631,27 +2631,6 @@ static void FILEDLG95_MRU_load_ext(LPWSTR stored_path, size_t cchMax, LPCWSTR de
             (*s_pFreeMRUList)(hList);
         }
 
-        if (stored_path[0] == 0)
-        {
-            mi.cbSize = sizeof(mi);
-            mi.uMax = 26;
-            mi.fFlags = MRU_STRING;
-            mi.hKey = hOpenSaveMRT;
-            mi.lpszSubKey = s_szAst;
-            mi.u.string_cmpfn = lstrcmpiW;
-            hList = (*s_pCreateMRUListW)(&mi);
-            if (hList)
-            {
-                ret = (*s_pEnumMRUListW)(hList, 0, szText, sizeof(szText));
-                if (ret > 0)
-                {
-                    lstrcpynW(stored_path, szText, cchMax);
-                    PathRemoveFileSpecW(stored_path);
-                }
-                (*s_pFreeMRUList)(hList);
-            }
-        }
-
         RegCloseKey(hOpenSaveMRT);
     }