Make the XReparent Window parameter a little more flexible to support both base 16 "with 0x prefix" or decimal window numbers.

This commit is contained in:
Brent Collins 2012-05-04 13:47:54 -05:00
parent 70ccbd1926
commit 138f115d73

View 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)
{