From 05f5009b0a7257db7219f448ba00e4bfe72154a8 Mon Sep 17 00:00:00 2001 From: Brent Collins Date: Fri, 4 May 2012 13:47:54 -0500 Subject: [PATCH] Make the XReparent Window parameter a little more flexible to support both base 16 "with 0x prefix" or decimal window numbers. (cherry picked from commit 138f115d7335e94bdc0744cab616998cbda3307d) --- libfreerdp-utils/args.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp-utils/args.c b/libfreerdp-utils/args.c index 9ac26deac..93cf6013e 100644 --- a/libfreerdp-utils/args.c +++ b/libfreerdp-utils/args.c @@ -513,7 +513,7 @@ int freerdp_parse_args(rdpSettings* settings, int argc, char** argv, return FREERDP_ARGS_PARSE_FAILURE; } - settings->parent_window_xid = strtoul(argv[index], NULL, 16); + settings->parent_window_xid = strtol(argv[index], NULL, 0); if (settings->parent_window_xid == 0) {