mirror of https://github.com/FreeRDP/FreeRDP
Fixed compilation on windows (code was not standard C)
This commit is contained in:
parent
ed3632f6f3
commit
c4de5a4e4b
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue