Commit 2b74e91d authored by Charles Loep's avatar Charles Loep Committed by Alexandre Julliard

Fixed file extension problem in the file dialog.

parent 8ebf7c29
...@@ -2374,7 +2374,7 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd) ...@@ -2374,7 +2374,7 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
{ {
/* get the total length of the selected file names*/ /* get the total length of the selected file names*/
lpstrTemp[0] = '\0'; 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 */ if ( ! IsPidlFolder(fodInfos->Shell.FOIShellFolder, pidl) ) /* Ignore folders */
{ {
...@@ -2403,7 +2403,7 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd) ...@@ -2403,7 +2403,7 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
{ {
/* get the file name */ /* get the file name */
lpstrTemp[0] = '\0'; 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 */ if (! IsPidlFolder(fodInfos->Shell.FOIShellFolder, pidl)) /* Ignore folders */
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment