From: David PHAM-VAN Date: Wed, 23 May 2012 10:11:39 +0000 (+0200) Subject: Add SetNull and SetDefault functions to pointer managment to avoyd segfault with... X-Git-Url: http://git.alex.org.uk Add SetNull and SetDefault functions to pointer managment to avoyd segfault with windows 2008r2 Signed-off-by: Michael Jumper --- diff --git a/include/rdp_pointer.h b/include/rdp_pointer.h index ff87091..641eb66 100644 --- a/include/rdp_pointer.h +++ b/include/rdp_pointer.h @@ -20,6 +20,7 @@ * the Initial Developer. All Rights Reserved. * * Contributor(s): + * David PHAM-VAN Ulteo SAS - http://www.ulteo.com * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or @@ -59,5 +60,7 @@ typedef struct guac_rdp_pointer { void guac_rdp_pointer_new(rdpContext* context, rdpPointer* pointer); void guac_rdp_pointer_set(rdpContext* context, rdpPointer* pointer); void guac_rdp_pointer_free(rdpContext* context, rdpPointer* pointer); +void guac_rdp_pointer_set_null(rdpContext* context); +void guac_rdp_pointer_set_default(rdpContext* context); #endif diff --git a/src/client.c b/src/client.c index d611018..e7d4b0a 100644 --- a/src/client.c +++ b/src/client.c @@ -151,6 +151,8 @@ boolean rdp_freerdp_pre_connect(freerdp* instance) { pointer->New = guac_rdp_pointer_new; pointer->Free = guac_rdp_pointer_free; pointer->Set = guac_rdp_pointer_set; + pointer->SetNull = guac_rdp_pointer_set_null; + pointer->SetDefault = guac_rdp_pointer_set_default; graphics_register_pointer(context->graphics, pointer); xfree(pointer); diff --git a/src/rdp_pointer.c b/src/rdp_pointer.c index ac46aac..4ef2ecb 100644 --- a/src/rdp_pointer.c +++ b/src/rdp_pointer.c @@ -20,6 +20,7 @@ * the Initial Developer. All Rights Reserved. * * Contributor(s): + * David PHAM-VAN Ulteo SAS - http://www.ulteo.com * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or @@ -101,3 +102,9 @@ void guac_rdp_pointer_free(rdpContext* context, rdpPointer* pointer) { } +void guac_rdp_pointer_set_null(rdpContext* context) { +} + +void guac_rdp_pointer_set_default(rdpContext* context) { +} +