From 2b74e91df576e192aaec46f87b0298c62c04f5a0 Mon Sep 17 00:00:00 2001
From: Charles Loep <charles@codeweavers.com>
Date: Tue, 29 Jan 2002 16:58:39 +0000
Subject: [PATCH] Fixed file extension problem in the file dialog.

---
 dlls/commdlg/filedlg95.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/commdlg/filedlg95.c b/dlls/commdlg/filedlg95.c
index 9d61a33d051..d14312855a6 100644
--- a/dlls/commdlg/filedlg95.c
+++ b/dlls/commdlg/filedlg95.c
@@ -2374,7 +2374,7 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
 	{
           /* get the total length of the selected file names*/
           lpstrTemp[0] = '\0';
-          GetName( fodInfos->Shell.FOIShellFolder, pidl, SHGDN_INFOLDER, lpstrTemp );
+          GetName( fodInfos->Shell.FOIShellFolder, pidl, SHGDN_INFOLDER|SHGDN_FORPARSING, lpstrTemp );
 
           if ( ! IsPidlFolder(fodInfos->Shell.FOIShellFolder, pidl) ) /* Ignore folders */
 	  {
@@ -2403,7 +2403,7 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
 	{
 	  /* get the file name */
           lpstrTemp[0] = '\0';
-          GetName( fodInfos->Shell.FOIShellFolder, pidl, SHGDN_INFOLDER, lpstrTemp );
+          GetName( fodInfos->Shell.FOIShellFolder, pidl, SHGDN_INFOLDER|SHGDN_FORPARSING, lpstrTemp );
 
           if (! IsPidlFolder(fodInfos->Shell.FOIShellFolder, pidl)) /* Ignore folders */
 	  {
-- 
GitLab