title: Issues with CFileDialog for multiple file selection
body: <p>I'm using the following code to retrieve multiple file selection via UI:</p>
  
  <pre><code>CFileDialog fd(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_EXPLORER, 
      NULL, hParentWnd ? CWnd::FromHandle(hParentWnd) : NULL);
  
  fd.m_pOFN-&gt;Flags |= OFN_FILEMUSTEXIST | OFN_ALLOWMULTISELECT | OFN_NODEREFERENCELINKS;
  
  int nLnBuff = 32767;
  TCHAR* pBuffFileSelect = new TCHAR[nLnBuff];
  
  memset(pBuffFileSelect, 0, nLnBuff * sizeof(TCHAR));
  
  fd.m_ofn.lpstrFile = pBuffFileSelect;
  fd.m_ofn.nMaxFile = nLnBuff;
  
  if(fd.DoModal() == IDOK)
  {
      POSITION fileNamesPosition = fd.GetStartPosition();
      while(fileNamesPosition != NULL)
      {
          CString strSelPath = fd.GetNextPathName(fileNamesPosition);
          TRACE("path: %s\n", CStringA(strSelPath));
      }  
  }
  
  
  delete[] pBuffFileSelect;
  </code></pre>
  
  <p>So when I try it on my PC, I run the method above and when the "Open File" dialog open up, just as a test, I navigated to my desktop and selected all files using Ctrl+A shortcut and then clicked Open. As a result I started getting the following paths:</p>
  
  <pre><code>The first path is a link, which is correct (it exists on my Public desktop):
  "C:\Users\Public\Desktop\avp.lnk"
  
  But then the second path is wrong. It gives me:
  "C:\Users\Public\Desktop\1.txt"
  when it's supposed to be (for the desktop that I picked):
  "C:\Users\UserName\Desktop\1.txt"
  </code></pre>
  
  <p>and then every consecutive path has "Public" instead of "UserName".</p>
  
  <p>I should point out that I have several user accounts set up on this PC and the one that I'm testing this method from is a Standard user account. The app that I'm running this method from is not running elevated (or with regular user privileges) so it should not have access to other user accounts anyway.</p>
  
  <p>So what am I doing wrong here?</p>