Changeset 459dec8 for protocols/purple


Ignore:
Timestamp:
2015-12-06T04:41:32Z (4 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
dbca297, df701918
Parents:
c54bb11
Message:

purple: fix crash when doing 'chat with' with skypeweb

It was passing the wrong data to the callback - it was supposed to pass
the data of the PurpleMenuItem but it passed the PurpleMenuItem itself.

Probably also applies to other protocols too. It worked fine with
jabber, which i'm guessing is what this code was tested with originally.

It still whines about the null return value saying "(Possible) failure"
but, eh, whatever.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/purple/purple.c

    rc54bb11 r459dec8  
    651651        /* Call the fucker. */
    652652        callback = (void *) mi->callback;
    653         callback(&pb->node, menu->data);
     653        callback(&pb->node, mi->data);
    654654
    655655        return NULL;
Note: See TracChangeset for help on using the changeset viewer.