diff --git a/libctru/include/3ds/services/news.h b/libctru/include/3ds/services/news.h index 8a68c29..501d03b 100644 --- a/libctru/include/3ds/services/news.h +++ b/libctru/include/3ds/services/news.h @@ -44,9 +44,9 @@ Result NEWS_GetTotalNotifications(u32* num); /** * @brief Sets a custom header for a specific notification. * @param news_id Identification number of the notification. - * @param header Notification header to set. + * @param header Pointer to the notification header to set. */ -Result NEWS_SetNotificationHeader(u32 news_id, NotificationHeader header); +Result NEWS_SetNotificationHeader(u32 news_id, const NotificationHeader* header); /** * @brief Gets the header of a specific notification. @@ -68,4 +68,4 @@ Result NEWS_GetNotificationMessage(u32 news_id, u16* message); * @param buffer Pointer where MPO image of the notification will be saved. * @param size Pointer where size of the image data will be saved in bytes. */ -Result NEWS_GetNotificationImage(u32 id, u8* buffer, u32* size); +Result NEWS_GetNotificationImage(u32 news_id, void* buffer, u32* size); diff --git a/libctru/source/services/news.c b/libctru/source/services/news.c index 2622e3e..93e50a9 100644 --- a/libctru/source/services/news.c +++ b/libctru/source/services/news.c @@ -77,7 +77,7 @@ Result NEWS_GetTotalNotifications(u32* num) return (Result)cmdbuf[1]; } -Result NEWS_SetNotificationHeader(u32 news_id, NotificationHeader header) +Result NEWS_SetNotificationHeader(u32 news_id, const NotificationHeader* header) { Result ret = 0; u32 *cmdbuf = getThreadCommandBuffer(); @@ -86,7 +86,7 @@ Result NEWS_SetNotificationHeader(u32 news_id, NotificationHeader header) cmdbuf[1] = news_id; cmdbuf[2] = sizeof(NotificationHeader); cmdbuf[3] = IPC_Desc_Buffer(sizeof(NotificationHeader),IPC_BUFFER_R); - cmdbuf[4] = (u32)&header; + cmdbuf[4] = (u32)header; if(R_FAILED(ret = svcSendSyncRequest(newsHandle))) return ret; return (Result)cmdbuf[1];