From 52160d1560cf32217dc0d916c78a68ba8f113fa2 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 9 Nov 2013 20:47:28 +0000 Subject: * Fixed crashes when MS_BB_* services are called with NULL arguments. All MS_BB_* services will now return 1 on failure. *Try to use pszModuleName as WindowText (maybe not the best chioce...) git-svn-id: http://svn.miranda-ng.org/main/trunk@6847 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ExternalAPI/m_msg_buttonsbar.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/ExternalAPI') diff --git a/plugins/ExternalAPI/m_msg_buttonsbar.h b/plugins/ExternalAPI/m_msg_buttonsbar.h index f5bb94d173..31d75e84e9 100644 --- a/plugins/ExternalAPI/m_msg_buttonsbar.h +++ b/plugins/ExternalAPI/m_msg_buttonsbar.h @@ -9,6 +9,7 @@ // // wParam = 0 // lParam = (BBButton *) &description +// Returns 0 on success, 1 otherwise #define MS_BB_ADDBUTTON "TabSRMM/ButtonsBar/AddButton" ////////////////////////////////////////////////////////////////////////// @@ -16,6 +17,7 @@ // // wParam = 0 // lParam = (BBButton *) &description, only button ID and ModuleName used +// Returns 0 on success, 1 otherwise #define MS_BB_REMOVEBUTTON "TabSRMM/ButtonsBar/RemoveButton" ////////////////////////////////////////////////////////////////////////// @@ -23,6 +25,7 @@ // // wParam = 0 // lParam = (BBButton *) &description +// Returns 0 on success, 1 otherwise #define MS_BB_MODIFYBUTTON "TabSRMM/ButtonsBar/ModifyButton" @@ -37,6 +40,7 @@ // wParam = hContact // lParam = (BBButton *) &description , only ModuleName and ID used // Returns BBButton struct with BBSF_ bbbFlags: +// Returns 0 on success, 1 otherwise #define MS_BB_GETBUTTONSTATE "TabSRMM/ButtonsBar/GetButtonState" ////////////////////////////////////////////////////////////////////////// @@ -44,6 +48,7 @@ // // wParam = hContact // lParam = (BBButton *) &description , ModuleName, ID,hIcon,Tooltip, and BBSF_ bbbFlags are used +// Returns 0 on success, 1 otherwise #define MS_BB_SETBUTTONSTATE "TabSRMM/ButtonsBar/SetButtonState" -- cgit v1.2.3