Compare commits

..

No commits in common. "3b5cc2f932e7bbda0692251a50cd98beaeea08d1" and "226284454454d123d090880a01f8f1eb1c925320" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -62,10 +62,10 @@ std::optional<WUPSConfigItemMultipleValues> WUPSConfigItemMultipleValues::Create
if (defaultIndex != -1 && currentValueIndex != -1) { if (defaultIndex != -1 && currentValueIndex != -1) {
break; break;
} }
if (cur.value == currentValue) { if (cur.value == defaultValue) {
currentValueIndex = i; currentValueIndex = i;
} }
if (cur.value == defaultValue) { if (cur.value == currentValue) {
defaultIndex = i; defaultIndex = i;
} }
i++; i++;

View File

@ -977,5 +977,5 @@ TEST_CASE("Store empty binary works") {
std::vector<uint8_t> get_vector{0x13, 0x37}; std::vector<uint8_t> get_vector{0x13, 0x37};
res = WUPSStorageAPI::Get("test", get_vector); res = WUPSStorageAPI::Get("test", get_vector);
REQUIRE(res == WUPS_STORAGE_ERROR_SUCCESS); REQUIRE(res == WUPS_STORAGE_ERROR_SUCCESS);
REQUIRE(get_vector.empty()); REQUIRE(empty_vector.empty());
} }