diff options
-rw-r--r-- | plugins/StatusPlugins/StartupStatus/profiles.cpp | 6 | ||||
-rw-r--r-- | protocols/MSN/src/skylogin/login.c | 5 | ||||
-rw-r--r-- | protocols/Tox/src/tox_network.cpp | 2 |
3 files changed, 4 insertions, 9 deletions
diff --git a/plugins/StatusPlugins/StartupStatus/profiles.cpp b/plugins/StatusPlugins/StartupStatus/profiles.cpp index faa14b04ca..51a4bccc71 100644 --- a/plugins/StatusPlugins/StartupStatus/profiles.cpp +++ b/plugins/StatusPlugins/StartupStatus/profiles.cpp @@ -200,12 +200,10 @@ static void CALLBACK releaseTtbTimerFunction(HWND, UINT, UINT_PTR, DWORD) CallService(MS_TTB_SETBUTTONSTATE, (WPARAM)ttbButtons[i], 0); } -INT_PTR LoadAndSetProfile(WPARAM wParam, LPARAM) +INT_PTR LoadAndSetProfile(WPARAM iProfileNo, LPARAM) { // wParam == profile no. - int profileCount = GetProfileCount(0, 0); - int profile = (int)wParam; - + int profile = (int)iProfileNo; TSettingsList profileSettings(10, CompareSettings); if (!GetProfile(profile, profileSettings)) { profile = (profile >= 0) ? profile : db_get_w(NULL, MODULENAME, SETTING_DEFAULTPROFILE, 0); diff --git a/protocols/MSN/src/skylogin/login.c b/protocols/MSN/src/skylogin/login.c index b7931390b2..406ebe279e 100644 --- a/protocols/MSN/src/skylogin/login.c +++ b/protocols/MSN/src/skylogin/login.c @@ -284,7 +284,7 @@ static int SendAuthentificationBlobLS(Skype_Inst *pInst, LSConnection *pConn, co ObjOauth.Family = OBJ_FAMILY_STRING;
ObjOauth.Id = OBJ_ID_OAUTH;
ObjOauth.Value.Memory.Memory = (uchar *)User;
- ObjOauth.Value.Memory.MsZ = strlen(User);
+ ObjOauth.Value.Memory.MsZ = (ulong)strlen(User);
WriteObject(&Browser, ObjOauth);
ObjVer.Family = OBJ_FAMILY_STRING;
@@ -343,9 +343,6 @@ static int SendAuthentificationBlobLS(Skype_Inst *pInst, LSConnection *pConn, co ManageObjects(&Browser, BSize, &Response);
for (Idx = 0; Idx < Response.NbObj; Idx++)
{
- uint LdIdx = 0;
-
-
switch (Response.Objs[Idx].Id)
{
case OBJ_ID_LOGINANSWER:
diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp index 7ae6d1613c..e895f04dde 100644 --- a/protocols/Tox/src/tox_network.cpp +++ b/protocols/Tox/src/tox_network.cpp @@ -131,7 +131,7 @@ void CToxProto::BootstrapNodesFromJson(CToxThread *toxThread, bool isIPv6) void CToxProto::BootstrapNodes(CToxThread *toxThread)
{
debugLogA(__FUNCTION__": bootstraping DHT");
- bool isUdp = getBool("EnableUDP", 1);
+ // bool isUdp = getBool("EnableUDP", 1);
bool isIPv6 = getBool("EnableIPv6", 0);
BootstrapNodesFromDb(toxThread, isIPv6);
BootstrapNodesFromJson(toxThread, isIPv6);
|