Just to be clear:

if (IsStack())
{
  Stack::GetPaths(vecFiles);
  if (vecFiles.size() != items->Size())
  {
    vecFiles.clear();
    vecFiles.push_back(strCurrentFile);
  }
}
else
{
   vecFiles.push_back(strCurrentFile);
}

Right? Not necessarily prettier than it was but it's probably clearer for the other readers out there ;-)