diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-07 21:30:49 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-07 21:30:49 +0000 |
commit | 8aefb2abf631ca117c3eb33be7eed5354a0c4f95 (patch) | |
tree | 2377dac0cdf7fe186be2c8bfe2dbbb1f7cd6df8d /src | |
parent | e2760a3c40e97c14bee952f39b4381cd0b0c939c (diff) |
crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@5620 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/protocols/protocols.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/protocols/protocols.cpp b/src/modules/protocols/protocols.cpp index 14abba9059..6fba0160f4 100644 --- a/src/modules/protocols/protocols.cpp +++ b/src/modules/protocols/protocols.cpp @@ -309,6 +309,9 @@ HICON Proto_GetIcon(PROTO_INTERFACE *ppro, int iconIndex) PROTOACCOUNT* __fastcall Proto_GetAccount(const char* accName)
{
+ if (accName == NULL)
+ return NULL;
+
int idx;
PROTOACCOUNT temp;
temp.szModuleName = (char*)accName;
|