diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-11-09 20:47:28 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-11-09 20:47:28 +0000 |
commit | 52160d1560cf32217dc0d916c78a68ba8f113fa2 (patch) | |
tree | 20825dee4e62736618a227522a19a640f4cf2f97 /plugins/ExternalAPI | |
parent | dc15843b8237831a121d493fa5a1f3b679013d48 (diff) |
* 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
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r-- | plugins/ExternalAPI/m_msg_buttonsbar.h | 5 |
1 files changed, 5 insertions, 0 deletions
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"
|