Merge pull request #5474 from nextcloud/bugfix/dehydrateCfapiFiles

with cfapi when dehydrating files add missing flag
This commit is contained in:
Matthieu Gallien 2023-02-28 14:14:51 +01:00 committed by GitHub
commit 444a116c96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -806,7 +806,11 @@ OCC::Result<OCC::Vfs::ConvertToPlaceholderResult, QString> OCC::CfApiWrapper::de
const qint64 result = CfUpdatePlaceholder(handleForPath(path).get(), nullptr,
fileIdentity.data(), sizeToDWORD(fileIdentitySize),
&dehydrationRange, 1, CF_UPDATE_FLAG_MARK_IN_SYNC, nullptr, nullptr);
&dehydrationRange,
1,
CF_UPDATE_FLAG_MARK_IN_SYNC | CF_UPDATE_FLAG_DEHYDRATE,
nullptr,
nullptr);
if (result != S_OK) {
qCWarning(lcCfApiWrapper) << "Couldn't update placeholder info for" << path << ":" << QString::fromWCharArray(_com_error(result).ErrorMessage());