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:
parent
5fb42a20e3
commit
05f5009b0a
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user