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 138f115d73)
This commit is contained in:
Brent Collins 2012-05-04 13:47:54 -05:00 committed by Bernhard Miklautz
parent 5fb42a20e3
commit 05f5009b0a

View File

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