diff --git a/libfreerdp/core/input.c b/libfreerdp/core/input.c index fc5b5f4ee..7b505310b 100644 --- a/libfreerdp/core/input.c +++ b/libfreerdp/core/input.c @@ -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) diff --git a/libfreerdp/core/update.c b/libfreerdp/core/update.c index a4cebdf08..1296a7b02 100644 --- a/libfreerdp/core/update.c +++ b/libfreerdp/core/update.c @@ -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)