mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-25 20:42:40 +02:00
kvdb: fix iterator access issue
This commit is contained in:
parent
0c5dab8022
commit
5e9628c1fa
@ -21,7 +21,6 @@
|
|||||||
#include "kvdb_auto_buffer.hpp"
|
#include "kvdb_auto_buffer.hpp"
|
||||||
#include "kvdb_archive.hpp"
|
#include "kvdb_archive.hpp"
|
||||||
#include "kvdb_bounded_string.hpp"
|
#include "kvdb_bounded_string.hpp"
|
||||||
#include "kvdb_memory_key_value_store.hpp"
|
|
||||||
|
|
||||||
namespace sts::kvdb {
|
namespace sts::kvdb {
|
||||||
|
|
||||||
@ -405,8 +404,8 @@ namespace sts::kvdb {
|
|||||||
return ResultKvdbKeyNotFound;
|
return ResultKvdbKeyNotFound;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t size = std::min(max_out_size, it.GetValueSize());
|
size_t size = std::min(max_out_size, it->GetValueSize());
|
||||||
std::memcpy(out_value, it.GetValuePointer(), size);
|
std::memcpy(out_value, it->GetValuePointer(), size);
|
||||||
*out_size = size;
|
*out_size = size;
|
||||||
return ResultSuccess;
|
return ResultSuccess;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user