diff options
Diffstat (limited to 'plugins/CSList/src/cslist.cpp')
-rw-r--r-- | plugins/CSList/src/cslist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CSList/src/cslist.cpp b/plugins/CSList/src/cslist.cpp index 2c5adcd426..442d2ae86d 100644 --- a/plugins/CSList/src/cslist.cpp +++ b/plugins/CSList/src/cslist.cpp @@ -226,10 +226,10 @@ INT_PTR showList(WPARAM, LPARAM, LPARAM param) void addProtoStatusMenuItem(char *protoName) { PROTOACCOUNT *pdescr = Proto_GetAccount(protoName); - if (pdescr == NULL) + if (pdescr == NULL || pdescr->ppro == NULL) return; - HGENMENU hRoot = Menu_GetProtocolRoot(pdescr->szModuleName); + HGENMENU hRoot = Menu_GetProtocolRoot(pdescr->ppro); if (hRoot == NULL) return; |