Updated the type for the size param for ncmContentStorageCreatePlaceHolder.

This commit is contained in:
yellows8 2019-11-03 22:04:52 -05:00
parent 6c7ad3095c
commit 09423066b0
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 3 additions and 3 deletions

View File

@ -170,7 +170,7 @@ Result ncmInvalidateRightsIdCache(void); ///< [9.0.0+]
void ncmContentStorageClose(NcmContentStorage* cs); void ncmContentStorageClose(NcmContentStorage* cs);
Result ncmContentStorageGeneratePlaceHolderId(NcmContentStorage* cs, NcmPlaceHolderId* out_id); Result ncmContentStorageGeneratePlaceHolderId(NcmContentStorage* cs, NcmPlaceHolderId* out_id);
Result ncmContentStorageCreatePlaceHolder(NcmContentStorage* cs, const NcmContentId* content_id, const NcmPlaceHolderId* placeholder_id, u64 size); Result ncmContentStorageCreatePlaceHolder(NcmContentStorage* cs, const NcmContentId* content_id, const NcmPlaceHolderId* placeholder_id, s64 size);
Result ncmContentStorageDeletePlaceHolder(NcmContentStorage* cs, const NcmPlaceHolderId* placeholder_id); Result ncmContentStorageDeletePlaceHolder(NcmContentStorage* cs, const NcmPlaceHolderId* placeholder_id);
Result ncmContentStorageHasPlaceHolder(NcmContentStorage* cs, bool* out, const NcmPlaceHolderId* placeholder_id); Result ncmContentStorageHasPlaceHolder(NcmContentStorage* cs, bool* out, const NcmPlaceHolderId* placeholder_id);
Result ncmContentStorageWritePlaceHolder(NcmContentStorage* cs, const NcmPlaceHolderId* placeholder_id, u64 offset, const void* data, size_t data_size); Result ncmContentStorageWritePlaceHolder(NcmContentStorage* cs, const NcmPlaceHolderId* placeholder_id, u64 offset, const void* data, size_t data_size);

View File

@ -130,11 +130,11 @@ Result ncmContentStorageGeneratePlaceHolderId(NcmContentStorage* cs, NcmPlaceHol
return _ncmCmdOutPlaceHolderId(&cs->s, out_id, 0); return _ncmCmdOutPlaceHolderId(&cs->s, out_id, 0);
} }
Result ncmContentStorageCreatePlaceHolder(NcmContentStorage* cs, const NcmContentId* content_id, const NcmPlaceHolderId* placeholder_id, u64 size) { Result ncmContentStorageCreatePlaceHolder(NcmContentStorage* cs, const NcmContentId* content_id, const NcmPlaceHolderId* placeholder_id, s64 size) {
const struct { const struct {
NcmContentId content_id; NcmContentId content_id;
NcmPlaceHolderId placeholder_id; NcmPlaceHolderId placeholder_id;
u64 size; s64 size;
} in = { *content_id, *placeholder_id, size }; } in = { *content_id, *placeholder_id, size };
return serviceDispatchIn(&cs->s, 1, in); return serviceDispatchIn(&cs->s, 1, in);
} }