Add SetNull and SetDefault functions to pointer managment to avoyd segfault with...
authorDavid PHAM-VAN <d.pham-van@ulteo.com>
Wed, 23 May 2012 10:11:39 +0000 (12:11 +0200)
committerMichael Jumper <zhangmaike@users.sourceforge.net>
Fri, 25 May 2012 07:00:37 +0000 (00:00 -0700)
Signed-off-by: Michael Jumper <zhangmaike@users.sourceforge.net>

include/rdp_pointer.h
src/client.c
src/rdp_pointer.c

index ff87091..641eb66 100644 (file)
@@ -20,6 +20,7 @@
  * the Initial Developer. All Rights Reserved.
  *
  * Contributor(s):
+ *  David PHAM-VAN <d.pham-van@ulteo.com> 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
index d611018..e7d4b0a 100644 (file)
@@ -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);
 
index ac46aac..4ef2ecb 100644 (file)
@@ -20,6 +20,7 @@
  * the Initial Developer. All Rights Reserved.
  *
  * Contributor(s):
+ *  David PHAM-VAN <d.pham-van@ulteo.com> 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) {
+}
+