Make SDL_GetTrayEntires() NULL-terminated

This commit is contained in:
Semphris authored and Sam Lantinga committed 2025-01-04 10:56:19 -08:00
1 parent a58bc3eaf4
commit 7673b84f52
4 files changed
+15 -9

No files matched your search

+3 -3
View File
@@ -228,9 +228,9 @@ extern SDL_DECLSPEC SDL_TrayMenu *SDLCALL SDL_GetTraySubmenu(SDL_TrayEntry *entr
* \param menu The menu to get entries from.
* \param size An optional pointer to obtain the number of entries in the
* menu.
* \returns the entries within the given menu. The pointer becomes invalid
* when any function that inserts or deletes entries in the menu is
* called.
* \returns a NULL-terminated list of entries within the given menu. The pointer
* becomes invalid when any function that inserts or deletes entries in
* the menu is called.
*
* \since This function is available since SDL 3.2.0.
*