Skip to content

Commit

Permalink
Fix regression introduced during one of previous commits.
Browse files Browse the repository at this point in the history
Signed-off-by: allexzander <blackslayer4@gmail.com>
  • Loading branch information
allexzander committed Mar 24, 2021
1 parent 1a87bae commit a4b23e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libsync/vfs/cfapi/cfapiwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ QString convertSidToStringSid(void *sid)

const auto result = QString::fromWCharArray(stringSid);
LocalFree(stringSid);
return QString::fromWCharArray(stringSid);
return result;
}

std::unique_ptr<TOKEN_USER> getCurrentTokenInformation()
Expand Down Expand Up @@ -442,7 +442,6 @@ bool deleteSyncRootRegistryKey(const QString &syncRootPath, const QString &provi
if (OCC::Utility::registryGetKeyValue(HKEY_LOCAL_MACHINE, syncRootIdUserSyncRootsRegistryKey, windowsSid).toString() == syncRootPath) {
const QString syncRootIdToDelete = syncRootManagerRegistryKey + syncRootId;
result = OCC::Utility::registryDeleteKeyTree(HKEY_LOCAL_MACHINE, syncRootIdToDelete);
return;
}
}
});
Expand Down

0 comments on commit a4b23e6

Please sign in to comment.