General refactoring

This commit is contained in:
Ivan Morozov
2022-09-23 21:59:32 +03:00
parent a0970d0963
commit 029908f8a1
17 changed files with 98 additions and 115 deletions

View File

@ -70,7 +70,13 @@ DataTime CFItem::getDataTime() const
void CFItem::setDataTime(const DataTime &value)
{
if (!dirEntry.use_count())
return;
if (dirEntry.lock()->getStgType() != StgStream && dirEntry.lock()->getStgType() != StgRoot)
dirEntry.lock()->setModifyDate(value.getUINT64());
else
throw CFException(L"Modify Date can only be set on storage entries");
}
GUID CFItem::getStorageCLSID() const