BActivationTransaction: Fix unarchiving constructor

This commit is contained in:
Ingo Weinhold
2013-09-11 05:07:14 +02:00
parent b53a2e6af5
commit c159d0cfd1
+4 -4
View File
@@ -41,12 +41,12 @@ BActivationTransaction::BActivationTransaction(BMessage* archive,
status_t error; status_t error;
int32 location; int32 location;
if ((error = archive->FindInt32("location", &location)) == B_OK if ((error = archive->FindInt32("location", &location)) == B_OK
|| (error = archive->FindInt64("change count", &fChangeCount)) == B_OK && (error = archive->FindInt64("change count", &fChangeCount)) == B_OK
|| (error = archive->FindString("transaction", && (error = archive->FindString("transaction",
&fTransactionDirectoryName)) == B_OK &fTransactionDirectoryName)) == B_OK
|| (error = _ExtractStringList(archive, "activate", && (error = _ExtractStringList(archive, "activate",
fPackagesToActivate)) == B_OK fPackagesToActivate)) == B_OK
|| (error = _ExtractStringList(archive, "deactivate", && (error = _ExtractStringList(archive, "deactivate",
fPackagesToDeactivate)) == B_OK) { fPackagesToDeactivate)) == B_OK) {
if (location >= 0 if (location >= 0
&& location <= B_PACKAGE_INSTALLATION_LOCATION_ENUM_COUNT) { && location <= B_PACKAGE_INSTALLATION_LOCATION_ENUM_COUNT) {