diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-08-18 15:10:01 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-08-18 15:10:01 +0000 |
commit | 6bbc0a78423fa98d659826faf12303093ec70123 (patch) | |
tree | be76eb9eb69121a882f95a15bc9cb10a60ece253 /plugins/FTPFileYM | |
parent | 5bc3f5153749a79e195e7e15ebe4d80ea3ddfa8e (diff) |
try to fix a crash
git-svn-id: http://svn.miranda-ng.org/main/trunk@5733 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FTPFileYM')
-rw-r--r-- | plugins/FTPFileYM/src/ftpfile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/FTPFileYM/src/ftpfile.cpp b/plugins/FTPFileYM/src/ftpfile.cpp index 53b2c5ef1f..2ae9808654 100644 --- a/plugins/FTPFileYM/src/ftpfile.cpp +++ b/plugins/FTPFileYM/src/ftpfile.cpp @@ -230,7 +230,8 @@ int PrebuildContactMenu(WPARAM wParam, LPARAM lParam) void PrebuildMainMenu()
{
for (int i=0; i < ServerList::FTP_COUNT; i++)
- Menu_ShowItem(hMainSubMenu[i], ftpList[i]->bEnabled);
+ if (ftpList[i])
+ Menu_ShowItem(hMainSubMenu[i], ftpList[i]->bEnabled);
}
int TabsrmmButtonPressed(WPARAM wParam, LPARAM lParam)
|