From 2bfaad4e1e3a2aea665bc5b3d70b3a249c01b257 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 29 Mar 2018 16:01:48 +0300 Subject: fixes #1229 (Cannot create new account) --- src/mir_app/src/protocols.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mir_app') diff --git a/src/mir_app/src/protocols.cpp b/src/mir_app/src/protocols.cpp index 3ac0e4b117..f18b256ea1 100644 --- a/src/mir_app/src/protocols.cpp +++ b/src/mir_app/src/protocols.cpp @@ -109,6 +109,7 @@ MIR_APP_DLL(int) Proto_RegisterModule(PROTOCOLDESCRIPTOR *pd) return 1; MBaseProto *p = (MBaseProto*)mir_calloc(sizeof(MBaseProto)); + p->cbSize = pd->cbSize; p->szName = mir_strdup(pd->szName); p->type = pd->type; if (pd->cbSize == sizeof(PROTOCOLDESCRIPTOR)) { -- cgit v1.2.3