mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-11-27 10:40:16 +00:00
nfp: Correct uninitialized size being used within GetTagInfo()
We were previously the name of the object being initialized within its own initializer, which results in uninitialized data being read.
This commit is contained in:
parent
0896089092
commit
d64ba58759
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ private:
|
||||||
const auto& amiibo = nfp_interface.GetAmiiboBuffer();
|
const auto& amiibo = nfp_interface.GetAmiiboBuffer();
|
||||||
const TagInfo tag_info{
|
const TagInfo tag_info{
|
||||||
.uuid = amiibo.uuid,
|
.uuid = amiibo.uuid,
|
||||||
.uuid_length = static_cast<u8>(tag_info.uuid.size()),
|
.uuid_length = static_cast<u8>(amiibo.uuid.size()),
|
||||||
.padding_1 = {},
|
.padding_1 = {},
|
||||||
.protocol = 1, // TODO(ogniK): Figure out actual values
|
.protocol = 1, // TODO(ogniK): Figure out actual values
|
||||||
.tag_type = 2,
|
.tag_type = 2,
|
||||||
|
|
Loading…
Reference in a new issue