Fixed compilation on windows (code was not standard C)

This commit is contained in:
Benoît LeBlanc 2013-11-15 08:21:36 -05:00
parent ed3632f6f3
commit c4de5a4e4b
2 changed files with 4 additions and 2 deletions

View File

@ -494,9 +494,10 @@ static void input_free_queued_message(void *obj)
rdpInput* input_new(rdpRdp* rdp)
{
const wObject cb = { .fnObjectFree = input_free_queued_message };
wObject cb;
rdpInput* input;
cb.fnObjectFree = input_free_queued_message ;
input = (rdpInput*) malloc(sizeof(rdpInput));
if (input != NULL)

View File

@ -1553,9 +1553,10 @@ static void update_free_queued_message(void *obj)
rdpUpdate* update_new(rdpRdp* rdp)
{
const wObject cb = { .fnObjectFree = update_free_queued_message };
wObject cb;
rdpUpdate* update;
cb.fnObjectFree = update_free_queued_message;
update = (rdpUpdate*) malloc(sizeof(rdpUpdate));
if (update)