From d2a8bb66889104780d56cee3b9da2c4377a883e5 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Fri, 23 Jan 2015 22:13:16 +0000 Subject: EmLAN: -Fixed possible crash in x64 build -Added support for PFLAG_UNIQUEIDSETTING (fixes #882) git-svn-id: http://svn.miranda-ng.org/main/trunk@11896 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/EmLanProto/src/amdproto.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'protocols/EmLanProto') diff --git a/protocols/EmLanProto/src/amdproto.cpp b/protocols/EmLanProto/src/amdproto.cpp index fb894e8987..63eca6d7dc 100644 --- a/protocols/EmLanProto/src/amdproto.cpp +++ b/protocols/EmLanProto/src/amdproto.cpp @@ -60,23 +60,22 @@ BOOL APIENTRY DllMain(HINSTANCE hInstDLL, DWORD reason, LPVOID) static INT_PTR __cdecl EMPGetCaps(WPARAM wParam,LPARAM ) { - int res = 0; switch(wParam) { case PFLAGNUM_1: - res = PF1_IM|PF1_BASICSEARCH|PF1_ADDSEARCHRES|PF1_PEER2PEER|PF1_INDIVSTATUS| + return PF1_IM|PF1_BASICSEARCH|PF1_ADDSEARCHRES|PF1_PEER2PEER|PF1_INDIVSTATUS| PF1_URL|PF1_MODEMSG|PF1_FILE|PF1_CANRENAMEFILE|PF1_FILERESUME; - break; case PFLAGNUM_2: - res = PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY | PF2_LIGHTDND | PF2_HEAVYDND | PF2_FREECHAT; - break; + return PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY | PF2_LIGHTDND | PF2_HEAVYDND | PF2_FREECHAT; case PFLAGNUM_3: - res = PF2_SHORTAWAY | PF2_LONGAWAY | PF2_LIGHTDND | PF2_HEAVYDND | PF2_FREECHAT; - break; + return PF2_SHORTAWAY | PF2_LONGAWAY | PF2_LIGHTDND | PF2_HEAVYDND | PF2_FREECHAT; case PFLAG_UNIQUEIDTEXT: - res = (INT_PTR)Translate("User name or '*'"); - break; + return (INT_PTR)Translate("User name or '*'"); + case PFLAG_UNIQUEIDSETTING: + return (INT_PTR)"Nick"; + case PFLAG_MAXLENOFMESSAGE: //FIXME + default: + return 0; } - return res; } static INT_PTR __cdecl EMPGetName(WPARAM wParam,LPARAM lParam) -- cgit v1.2.3