Fixed file extension problem in the file dialog.

This commit is contained in:
Charles Loep 2002-01-29 16:58:39 +00:00 committed by Alexandre Julliard
parent 8ebf7c292f
commit 2b74e91df5
1 changed files with 2 additions and 2 deletions

View File

@ -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 */
{