Consider the following scenario. You develop an application in which you use both the IFileDialog::SetOptions method, and the FOS_PICKFOLDERS parameter to select folders in an Open File common dialog box. However, in Windows Vista, or in Windows Server 2008, when you select a folder in the tree view of the dialog box, the IFileDialog interface returns an incorrect folder path. In this scenario the returned folder path contains two of the same selected folders.
For example, when you select “C:\Windows” from the tree view of the dialog box, the IFileDialog interface returns “C:\Windows\Windows”.