Fixed file extension problem in the file dialog.
This commit is contained in:
parent
8ebf7c292f
commit
2b74e91df5
|
@ -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)
|
||||||
{
|
{
|
||||||
/* 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 */
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue