Make the XReparent Window parameter a little more flexible to support both base 16...
authorBrent Collins <brent.collins.83@gmail.com>
Fri, 4 May 2012 18:47:54 +0000 (13:47 -0500)
committerBrent Collins <brent.collins.83@gmail.com>
Fri, 4 May 2012 18:47:54 +0000 (13:47 -0500)
libfreerdp-utils/args.c

index 8e510f9..e909986 100644 (file)
@@ -479,7 +479,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)
                        {