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; }
CPropVariant& CPropVariant::operator=(const PROPVARIANT& varSrc) { InternalCopy(&varSrc); return *this; }
CPropVariant::CPropVariant(const CPropVariant& varSrc) { vt = VT_EMPTY; InternalCopy(&varSrc); }
CPropVariant::CPropVariant(const PROPVARIANT& varSrc) { vt = VT_EMPTY; InternalCopy(&varSrc); }
PropertyVariant& PropertyVariant::operator=(const PropertyVariant &varSrc) { InternalCopy(&varSrc); return *this; }
PropertyVariant::PropertyVariant(const PropertyVariant &varSrc) { vt = VT_EMPTY; InternalCopy(&varSrc); }