mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-15 11:58:12 +00:00
[client] overlay/msg: fix type for app_msgBoxClose
It should not be taking a pointer to MsgBoxHandle. Also changed the type of MsgBoxHandle to prevent similar bugs.
This commit is contained in:
@@ -665,7 +665,7 @@ MsgBoxHandle app_confirmMsgBox(const char * caption,
|
||||
return handle;
|
||||
}
|
||||
|
||||
void app_msgBoxClose(MsgBoxHandle * handle)
|
||||
void app_msgBoxClose(MsgBoxHandle handle)
|
||||
{
|
||||
if (!handle)
|
||||
return;
|
||||
|
@@ -219,7 +219,7 @@ MsgBoxHandle overlayMsg_show(
|
||||
return (MsgBoxHandle)msg;
|
||||
}
|
||||
|
||||
void overlayMsg_close(MsgBoxHandle * handle)
|
||||
void overlayMsg_close(MsgBoxHandle handle)
|
||||
{
|
||||
if (ll_removeData(l_msg.messages, handle))
|
||||
freeMsg((struct Msg *)handle);
|
||||
|
@@ -32,6 +32,6 @@ MsgBoxHandle overlayMsg_show(
|
||||
const char * caption, MsgBoxConfirmCallback confirm, void * opaque,
|
||||
const char * fmt, va_list args);
|
||||
|
||||
void overlayMsg_close(MsgBoxHandle * handle);
|
||||
void overlayMsg_close(MsgBoxHandle handle);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user