OK I'm having a strange problem with a CFile dialog which allows multiple selections. It's an open dialog. And when the user selects multiple files I use this code to enumerate the files and add their paths to a list control...

Code:
POSITION pos = openDlg.GetStartPosition();
while(pos)
{
	CString	pathName = openDlg.GetNextPathName(pos);
	m_cSourceFiles.AddString(pathName);
}
the weird part is that when I select multiple files from the root of a drive the path will have two slashes in front of the file name like so...

F:\\Test.txt

If I select a file from a sub directory it works fine.

I know I can do a simple find and replace to fix it, but why is it doing this in the first place? Is this a bug in the CFileDialog code? Or something I'm doing wrong. Can anyone else able to reproduce this?

Thanks,
Dan

P.S. If it matters I'm using VS2005