Ticket #452: Fix segfault related to FastPath and pointer checks.

This commit is contained in:
Michael Jumper 2013-11-05 01:59:56 -08:00
parent 1af28eb820
commit 7547b4b5bd
2 changed files with 14 additions and 0 deletions

View File

@ -481,6 +481,16 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <freerdp/update.h>
[AC_MSG_RESULT([no])
AC_DEFINE([LEGACY_RDPPALETTE])])
#
# FreeRDP: rdpPointer
#
# Check for SetDefault and SetNull members of rdpPointer
AC_CHECK_MEMBERS([rdpPointer.SetDefault,
rdpPointer.SetNull],
,,
[[#include <freerdp/freerdp.h>]])
#
# FreeRDP: wMessage / RDP_EVENT
#

View File

@ -186,6 +186,8 @@ void guac_rdp_push_settings(guac_rdp_settings* guac_settings, freerdp* rdp) {
bitmap_cache = rdp_settings->bitmap_cache;
rdp_settings->os_major_type = OSMAJORTYPE_UNSPECIFIED;
rdp_settings->os_minor_type = OSMINORTYPE_UNSPECIFIED;
rdp_settings->fast_path_input = FALSE;
rdp_settings->fast_path_output = FALSE;
rdp_settings->order_support[NEG_DSTBLT_INDEX] = TRUE;
rdp_settings->order_support[NEG_PATBLT_INDEX] = FALSE; /* PATBLT not yet supported */
rdp_settings->order_support[NEG_SCRBLT_INDEX] = TRUE;
@ -214,6 +216,8 @@ void guac_rdp_push_settings(guac_rdp_settings* guac_settings, freerdp* rdp) {
bitmap_cache = rdp_settings->BitmapCacheEnabled;
rdp_settings->OsMajorType = OSMAJORTYPE_UNSPECIFIED;
rdp_settings->OsMinorType = OSMINORTYPE_UNSPECIFIED;
rdp_settings->FastPathInput = FALSE;
rdp_settings->FastPathOutput = FALSE;
rdp_settings->OrderSupport[NEG_DSTBLT_INDEX] = TRUE;
rdp_settings->OrderSupport[NEG_PATBLT_INDEX] = FALSE; /* PATBLT not yet supported */
rdp_settings->OrderSupport[NEG_SCRBLT_INDEX] = TRUE;