DWORD FFileManagerWindows::Copy( const TCHAR* DestFile, const TCHAR* SrcFile, UBOOL ReplaceExisting, UBOOL EvenIfReadOnly, UBOOL Attributes, FCopyProgress* Progress )
{
	// we can only write to user directory, but source may be user or install (try user first)
	DWORD ReturnValue = InternalCopy( *ConvertAbsolutePathToUserPath(*ConvertToAbsolutePath(DestFile)), *ConvertAbsolutePathToUserPath(*ConvertToAbsolutePath(SrcFile)), ReplaceExisting, EvenIfReadOnly, Attributes, Progress );
	if (ReturnValue != COPY_OK)
	{
		ReturnValue = InternalCopy( *ConvertAbsolutePathToUserPath(*ConvertToAbsolutePath(DestFile)), *ConvertToAbsolutePath(SrcFile), ReplaceExisting, EvenIfReadOnly, Attributes, Progress );
	}

	return ReturnValue;
}
Beispiel #2
0
CPropVariant& CPropVariant::operator=(const PROPVARIANT& varSrc)
{
  InternalCopy(&varSrc);
  return *this;
}
Beispiel #3
0
CPropVariant::CPropVariant(const CPropVariant& varSrc)
{
  vt = VT_EMPTY;
  InternalCopy(&varSrc);
}
Beispiel #4
0
CPropVariant::CPropVariant(const PROPVARIANT& varSrc)
{
  vt = VT_EMPTY;
  InternalCopy(&varSrc);
}
Beispiel #5
0
 PropertyVariant& PropertyVariant::operator=(const PropertyVariant &varSrc)
 {
     InternalCopy(&varSrc);
     return *this;
 }
Beispiel #6
0
 PropertyVariant::PropertyVariant(const PropertyVariant &varSrc)
 {
     vt = VT_EMPTY;
     InternalCopy(&varSrc);
 }