mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-07-17 22:22:21 +02:00
ncm: fix bug introduced by cleanup
This commit is contained in:
parent
b8e2c96824
commit
17bd586db6
@ -115,7 +115,7 @@ namespace ams::ncm {
|
|||||||
*out_count = content_meta_count;
|
*out_count = content_meta_count;
|
||||||
|
|
||||||
/* We're done if there are no content metas to list. */
|
/* We're done if there are no content metas to list. */
|
||||||
R_SUCCEED_IF(content_meta_count);
|
R_SUCCEED_IF(content_meta_count == 0);
|
||||||
|
|
||||||
/* Allocate a buffer for the content meta infos. */
|
/* Allocate a buffer for the content meta infos. */
|
||||||
std::unique_ptr<ContentMetaInfo[]> buffer(new (std::nothrow) ContentMetaInfo[content_meta_count]);
|
std::unique_ptr<ContentMetaInfo[]> buffer(new (std::nothrow) ContentMetaInfo[content_meta_count]);
|
||||||
|
Loading…
Reference in New Issue
Block a user