diff options
Diffstat (limited to 'plugins/SmileyAdd/src/dlgboxsubclass.cpp')
| -rw-r--r-- | plugins/SmileyAdd/src/dlgboxsubclass.cpp | 7 | 
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/SmileyAdd/src/dlgboxsubclass.cpp b/plugins/SmileyAdd/src/dlgboxsubclass.cpp index 03a0a6e5fd..1970577b48 100644 --- a/plugins/SmileyAdd/src/dlgboxsubclass.cpp +++ b/plugins/SmileyAdd/src/dlgboxsubclass.cpp @@ -324,11 +324,8 @@ static void MsgWndDetect(HWND hwndDlg, HANDLE hContact, msgData* datm)  			dat.hContact = hContact;
  		// Get the protocol for this contact to display correct smileys.
 -		char *protonam = (char*) CallService(MS_PROTO_GETCONTACTBASEPROTO, 
 -			(WPARAM)DecodeMetaContact(dat.hContact), 0);
 -
 -		if (protonam)
 -		{
 +		char *protonam = GetContactProto( DecodeMetaContact(dat.hContact));
 +		if (protonam) {
  			strncpy(dat.ProtocolName, protonam, sizeof(dat.ProtocolName));
  			dat.ProtocolName[sizeof(dat.ProtocolName)-1] = 0;
  		}
  | 
