From cb0da06f1bf5a44f4841a6a3fb210373efe954f3 Mon Sep 17 00:00:00 2001 From: sje Date: Thu, 5 Jul 2007 04:48:21 +0000 Subject: error C2362: initialization of 'dflags' is skipped by 'goto free_and_exit' remove parsing of '/3' for now (until lists implemented) git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@254 4f64403b-2f21-0410-a795-97e2b3489a10 --- MySpace/NetMessage.cpp | 1 - MySpace/server_con.cpp | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MySpace/NetMessage.cpp b/MySpace/NetMessage.cpp index a8d2e3c..a43ce85 100644 --- a/MySpace/NetMessage.cpp +++ b/MySpace/NetMessage.cpp @@ -150,7 +150,6 @@ char *NetMessage::unescape_inplace(char *val) { read_pos++; if(val[read_pos] == '1') val[write_pos++] = '/'; else if(val[read_pos] == '2') val[write_pos++] = '\\'; - else if(val[read_pos] == '3') val[write_pos++] = '|'; else val[write_pos++] = '?'; read_pos++; } else { diff --git a/MySpace/server_con.cpp b/MySpace/server_con.cpp index 03321da..e5f9ccd 100644 --- a/MySpace/server_con.cpp +++ b/MySpace/server_con.cpp @@ -870,6 +870,7 @@ void __cdecl sttDownloadAvatar(void *param) { req.szUrl = info->url; req.flags = 0; NETLIBHTTPREQUEST *nlhrReply = 0; + int dlflags = 0; ProtoBroadcastAck(MODULE,info->hContact, ACKTYPE_AVATAR, ACKRESULT_CONNECTING, 0, 0); @@ -909,10 +910,10 @@ void __cdecl sttDownloadAvatar(void *param) { ProtoBroadcastAck(MODULE,info->hContact,ACKTYPE_AVATAR,ACKRESULT_SENTREQUEST, 0, 0); - int dflags = (req.flags&NLHRF_DUMPASTEXT?MSG_DUMPASTEXT:0) | + dlflags = (req.flags&NLHRF_DUMPASTEXT?MSG_DUMPASTEXT:0) | (req.flags&NLHRF_NODUMP?MSG_NODUMP:(req.flags&NLHRF_DUMPPROXY?MSG_DUMPPROXY:0)); - nlhrReply = NetlibHttpRecv(hConnection, 0, dflags); + nlhrReply = NetlibHttpRecv(hConnection, 0, dlflags); Netlib_CloseHandle(hConnection); -- cgit v1.2.3