platform/upstream/freerdp.git
3 years agoFixed GetAttrib call
akallabeth [Sat, 6 Feb 2021 11:40:17 +0000 (12:40 +0100)]
Fixed GetAttrib call

(cherry picked from commit 99d228251c73c3c33bc1119ceb7d084f77d80076)

3 years agorefactored smartcard allocations
akallabeth [Sat, 6 Feb 2021 11:21:03 +0000 (12:21 +0100)]
refactored smartcard allocations

(cherry picked from commit 27ba319c89ab46431b0df1b9ad41daf68b7eae6f)

3 years agoFixed SCard debug WCHAR string lengths
akallabeth [Fri, 5 Feb 2021 16:12:52 +0000 (17:12 +0100)]
Fixed SCard debug WCHAR string lengths

(cherry picked from commit a9409221d073e8665a1f27da764d9d042f557e0f)

3 years agoFixed double free in PCSC_SCardGetAttrib_FriendlyName
akallabeth [Fri, 5 Feb 2021 16:11:58 +0000 (17:11 +0100)]
Fixed double free in PCSC_SCardGetAttrib_FriendlyName

(cherry picked from commit c1575fa99aa9fae335cf6b0f4107c0e12aa7d931)

3 years agoReordered UWAC events to keep compatibility
Armin Novak [Fri, 5 Feb 2021 12:31:46 +0000 (13:31 +0100)]
Reordered UWAC events to keep compatibility

3 years agoChangelog for 2.3.0
Armin Novak [Fri, 5 Feb 2021 08:55:50 +0000 (09:55 +0100)]
Changelog for 2.3.0

3 years agoCompatibility changes
Armin Novak [Fri, 5 Feb 2021 11:42:20 +0000 (12:42 +0100)]
Compatibility changes

Renamed symbols and added wrappers to keep API compatible with
2.0 branch.

3 years agoIncreased version to 2.3.0
Armin Novak [Fri, 5 Feb 2021 10:13:11 +0000 (11:13 +0100)]
Increased version to 2.3.0

3 years agoDo not recreate already initialized codecs
Armin Novak [Fri, 5 Feb 2021 10:06:23 +0000 (11:06 +0100)]
Do not recreate already initialized codecs

GFX and SurfaceBits commands share a common codec backend.
Recreating all codec context on GFX initialization will break
clients that are decoding SurfaceBits codec while having the GFX
channel initialized.

(cherry picked from commit 91a6ac131370c48a742b8bcc58ad188bb7ed60f8)

3 years agoFixed default return for DrawOrderInfo
akallabeth [Thu, 28 Jan 2021 13:08:35 +0000 (14:08 +0100)]
Fixed default return for DrawOrderInfo

(cherry picked from commit 4587ef976c07a06f9fe751e2857bddea2a6e9a69)

3 years agoFix length return for SCARD_ATTR_VENDOR_NAME
akallabeth [Wed, 27 Jan 2021 22:25:57 +0000 (23:25 +0100)]
Fix length return for SCARD_ATTR_VENDOR_NAME

(cherry picked from commit cf2d26dbbd7491d2039c6bb13cd4cc0130f50cd6)

3 years agoFixed PCSC_SCardGetAttrib wrapper
Armin Novak [Wed, 27 Jan 2021 14:07:44 +0000 (15:07 +0100)]
Fixed PCSC_SCardGetAttrib wrapper

(cherry picked from commit 17d8267de70719d1ac7357bc71d177bf36c6ad86)

3 years agoDereference ppbAttr as argument for SCardGetAttrib
akallabeth [Tue, 26 Jan 2021 16:22:42 +0000 (17:22 +0100)]
Dereference ppbAttr as argument for SCardGetAttrib

(cherry picked from commit 1efcd605e02bdbe54121d9f1da85d6874c26f59e)

3 years agoAdded option to remap scancodes
Armin Novak [Wed, 28 Oct 2020 11:22:48 +0000 (12:22 +0100)]
Added option to remap scancodes

(cherry picked from commit d7bf6553c558db64e5e3108b08f8ee1d394d1393)

3 years agoCompatibility commit
Armin Novak [Fri, 5 Feb 2021 08:39:07 +0000 (09:39 +0100)]
Compatibility commit

* Adds compatibility defines for 2.2.0
* Reorders some newe fields in structs to improve compatibility

3 years agoprogressive: fix multiple regions in one gfx frame.
Vic Lee [Thu, 4 Feb 2021 05:01:38 +0000 (13:01 +0800)]
progressive: fix multiple regions in one gfx frame.

(cherry picked from commit 7f94095a0670f6d0bc19021e6e1439cf934edf52)

3 years agolibuwac: Fix code format
0140454 [Thu, 4 Feb 2021 13:51:23 +0000 (21:51 +0800)]
libuwac: Fix code format

(cherry picked from commit 706b6ddbb12a22986a1a86171d4c19775f4a5d6f)

3 years agoSync numlock, capslock state in Wayland
0140454 [Thu, 4 Feb 2021 12:24:49 +0000 (20:24 +0800)]
Sync numlock, capslock state in Wayland

(cherry picked from commit b56a3691ca35a7f55e31998c55a40a9da9d0d745)

3 years agolibuwac: Add UwacKeyboardModifiersEvent
0140454 [Thu, 4 Feb 2021 12:23:02 +0000 (20:23 +0800)]
libuwac: Add UwacKeyboardModifiersEvent

(cherry picked from commit b4ffc2f8b3792f9781559ebe4a094511c3b46170)

3 years agoDont' commit surface in configure handler
0140454 [Sat, 30 Jan 2021 13:39:07 +0000 (21:39 +0800)]
Dont' commit surface in configure handler

(cherry picked from commit 256b94450cc921560dd9842fadc45edbeb85e760)

3 years agoProcess close event
0140454 [Sat, 30 Jan 2021 13:38:03 +0000 (21:38 +0800)]
Process close event

(cherry picked from commit f61744a062255eaaaaec21c9192666f55559e26e)

3 years agoAdded wayland discrete axis events for mouse wheel
akallabeth [Wed, 27 Jan 2021 18:42:32 +0000 (19:42 +0100)]
Added wayland discrete axis events for mouse wheel

the discrete axis event gives changes in steps just like the
xfreerdp version uses. This way scrolling can be implemented
consistent with the behaviour of xfreerdp

(cherry picked from commit 2cce37a82a08b0a7c24302a6819371218dea1ec6)

3 years agocore: Enable network auto detection by default
Martin Fleisz [Thu, 4 Feb 2021 12:10:58 +0000 (13:10 +0100)]
core: Enable network auto detection by default

(cherry picked from commit ce3edb00ef7471fc80b1991d126342aedc2d4c93)

3 years agocore: Remove connection type manipulation in gcc_write_client_core_data
Martin Fleisz [Thu, 4 Feb 2021 08:54:48 +0000 (09:54 +0100)]
core: Remove connection type manipulation in gcc_write_client_core_data

Removes the changes to connection type in gcc_write_client_core_data and
adds some checks if network detection is enabled when receiving network
detection requests.

(cherry picked from commit 43825e364e9580eab08cae84dfd8021d16828730)

3 years agolibfreerdp: core: add checks in gcc_write_client_data_blocks
kubistika [Thu, 21 Jan 2021 13:24:38 +0000 (15:24 +0200)]
libfreerdp: core: add checks in gcc_write_client_data_blocks

(cherry picked from commit afa213b5e572416fca6049c748cda14d38f3b262)

3 years agogateway: Fix consent/service message in legacy gateway code
Martin Fleisz [Wed, 27 Jan 2021 08:44:19 +0000 (09:44 +0100)]
gateway: Fix consent/service message in legacy gateway code

(cherry picked from commit 00d56429211c2b1275e1122450e5bb87094c9678)

3 years agoFixed drive hotplug path comparison.
Armin Novak [Wed, 27 Jan 2021 08:25:26 +0000 (09:25 +0100)]
Fixed drive hotplug path comparison.

(cherry picked from commit c7bf33aad04822eb6400459114d405031edb376a)

3 years agoAdded OrderInfo callback for primary, seconardy and altsec orders
akallabeth [Tue, 26 Jan 2021 14:25:06 +0000 (15:25 +0100)]
Added OrderInfo callback for primary, seconardy and altsec orders

This allows gathering statistics about which orders have been
received

(cherry picked from commit f45f92f7bb4b560d1fedd723a353d8c1d0c73fbd)

3 years agoFix key repeat in Wayland
0140454 [Tue, 26 Jan 2021 17:19:15 +0000 (01:19 +0800)]
Fix key repeat in Wayland

(cherry picked from commit 712c5fee97d9b007b902bee63b7b7a4971bfbe6b)

3 years agoFilter out duplicate ClientFormatList announcements
akallabeth [Thu, 26 Nov 2020 16:38:04 +0000 (17:38 +0100)]
Filter out duplicate ClientFormatList announcements

(cherry picked from commit a51f4ccaaa8d4a2232725dc555827705ea8f0429)

3 years agoCommand-line option to choose an X selection.
Simon Tatham [Wed, 18 Mar 2020 20:59:12 +0000 (20:59 +0000)]
Command-line option to choose an X selection.

I personally find it more convenient to have pasted data written to
the X11 PRIMARY selection, so that I can paste it with a fast middle-
button click, than to write to CLIPBOARD which typically needs a key
sequence or menu action.

This commit adds a command-line option to let me express that
preference: now I can say "/clipboard:use-selection:PRIMARY" on the
command line, which not only enables clipboard transfer but also says
which X selection I want it to talk to. The previous options
"+clipboard" and "-clipboard" are also still supported.

(cherry picked from commit 64948b96c4c4640078ce563b165a907251fd6f20)

3 years agowinpr/utils: allow COMMAND_LINE_VALUE_{OPTIONAL,BOOL} to coexist.
Simon Tatham [Wed, 18 Mar 2020 21:00:06 +0000 (21:00 +0000)]
winpr/utils: allow COMMAND_LINE_VALUE_{OPTIONAL,BOOL} to coexist.

Now you can give an option the combination of flags
COMMAND_LINE_VALUE_OPTIONAL and COMMAND_LINE_VALUE_BOOL. If you do,
then all three of the syntaxes +foo, -foo and /foo:value are allowed
at once, and the receiving code can tell the difference because the
Value field is set to BoolValueTrue, BoolValueFalse or a valid char
pointer.

(cherry picked from commit 22c6b375d4ae9bf9dcac74d3360d0042673f1353)

3 years agoxf_cliprdr: fill in support for TIMESTAMP requests.
Simon Tatham [Fri, 13 Mar 2020 17:59:22 +0000 (17:59 +0000)]
xf_cliprdr: fill in support for TIMESTAMP requests.

A selection owner is supposed to respond to a request for the
selection target TIMESTAMP by providing the X server time at which the
selection was written. There was a /* TODO */ comment in xf_cliprdr
where the code to do that should have been.

The absence of this can cause a problem when pasting into some X
clients. xtightvncviewer, in particular, will give up the attempt to
read from the clipboard at all if it doesn't get a satisfactory
response to the initial TIMESTAMP request - and the non-answer zero
value "CurrentTime" counts as unsatisfactory. It won't be happy with
anything short of a real X server time value.

(Checking the VNC source code, that's because it reads both PRIMARY
and CLIPBOARD and picks the one with the later timestamp. So it does
depend on the timestamps existing.)

When you're writing to the selection in response to a normal X event
like a mouse click or keyboard action, you get the selection timestamp
by copying the time field out of that X event. Here, we're doing it on
our own initiative, so we have to _request_ the X server time. There
isn't a GetServerTime request in the X protocol, so I work around it
by setting a property on our own window, and waiting for a
PropertyNotify event to come back telling me it's been done - which
will have a timestamp we can use.

(cherry picked from commit fcabbc9707e23b94d7e82021e997578fb20c9313)

3 years agoFixed #6696: Implement HandshakeEx in windows client
akallabeth [Tue, 19 Jan 2021 07:44:14 +0000 (08:44 +0100)]
Fixed #6696: Implement HandshakeEx in windows client

Special thanks to @byteboon for bisecting the issue

(cherry picked from commit fc20299c22735beb64afe33b958c41506f092c72)

3 years agoFixed call to GetKeyboardLayout
akallabeth [Tue, 15 Dec 2020 08:59:52 +0000 (09:59 +0100)]
Fixed call to GetKeyboardLayout

(cherry picked from commit 8b8016ec21509fda5dfd182cb1d1fb186d272d7a)

3 years agoFixed naming of FILEDESCRIPTORW
akallabeth [Thu, 17 Sep 2020 13:21:45 +0000 (15:21 +0200)]
Fixed naming of FILEDESCRIPTORW

(cherry picked from commit a3bf25e9239b1fb970e65901356a970531bf067a)

3 years agoFixed support for huge files in clipboard
akallabeth [Tue, 24 Nov 2020 10:00:13 +0000 (11:00 +0100)]
Fixed support for huge files in clipboard

(cherry picked from commit f3dad4106a62cf29db0685221cd90b751e3ac2b1)

3 years agoFixed NtStatus2Tag return.
Armin Novak [Fri, 23 Oct 2020 07:26:11 +0000 (09:26 +0200)]
Fixed NtStatus2Tag return.

(cherry picked from commit 11ca443aafc39ebc61c24f19577655e0ffcaa189)

3 years agoAdded backward compatibility define
Armin Novak [Wed, 14 Oct 2020 07:19:57 +0000 (09:19 +0200)]
Added backward compatibility define

(cherry picked from commit a22f264189b112ac1b334ef33cd2a2615b0b8140)

3 years agoUpdated FD_FLAGS definition.
Armin Novak [Wed, 14 Oct 2020 06:55:28 +0000 (08:55 +0200)]
Updated FD_FLAGS definition.

(cherry picked from commit ef1c8a3b506a2e039faa92b435d326ca3f29385a)

3 years agoRefactored RDG chunked data struct
akallabeth [Mon, 25 Jan 2021 07:18:19 +0000 (08:18 +0100)]
Refactored RDG chunked data struct

(cherry picked from commit eafb4b8d5f4dd081606b4e6a69d92089993aae4b)

3 years agoFixed RDP gateway types and use after free
akallabeth [Mon, 25 Jan 2021 07:07:43 +0000 (08:07 +0100)]
Fixed RDP gateway types and use after free

(cherry picked from commit 8c78e6742569936cb2bff59649888c93f3f3437f)

3 years agoImplement chunked encoding for RDG_OUT_DATA
akarl10 [Fri, 22 Jan 2021 09:53:00 +0000 (10:53 +0100)]
Implement chunked encoding for RDG_OUT_DATA

(cherry picked from commit cfb1a878a3b1c2c469c3d15e135f21f388c177b8)

3 years agofree previous value of password field from `freerdp_assistance_parse_file_buffer`
odednoam [Sat, 7 Nov 2020 21:20:56 +0000 (23:20 +0200)]
free previous value of password field from `freerdp_assistance_parse_file_buffer`

(cherry picked from commit 73dd40275fca9d009bcb07d4a734af146578f414)

3 years agoFixed bug with assistance buffer parsing: `freerdp_assistance_parse_file_buffer`...
odednoam [Thu, 5 Nov 2020 10:58:47 +0000 (12:58 +0200)]
Fixed bug with assistance buffer parsing: `freerdp_assistance_parse_file_buffer` may be called directly, not necessarily from `freerdp_assistance_parse_file`, so password should be saved to the `rdpAssistanceFile` in `freerdp_assistance_parse_file_buffer`.

(cherry picked from commit 0dc9b18cdea8dce172fdc34be067b07a846594d0)

3 years agoConservative keyboard state sync, refactored input API
akallabeth [Mon, 29 Jun 2020 06:39:09 +0000 (08:39 +0200)]
Conservative keyboard state sync, refactored input API

(cherry picked from commit b679f3a0ebbbedf039e735523087c58e3b3920e2)

3 years agoFixed display channel anounce race
akallabeth [Fri, 13 Nov 2020 17:07:35 +0000 (18:07 +0100)]
Fixed display channel anounce race

* The display resolution change message was prone to a race condition
* Check for actual fullscreen state instead of settings
* Assume 75dpi for display resolution to mm conversion

(cherry picked from commit 13c8a60b7095c141321cd2d09f3e36466d54a748)

3 years agoProperly discard xfc->appWindow on focus loss
Armin Novak [Wed, 9 Dec 2020 15:07:49 +0000 (16:07 +0100)]
Properly discard xfc->appWindow on focus loss

(cherry picked from commit 34e5504bcc1734fd767572a262dec94e551e4c30)

3 years agoFixed #6635: Use correct window handle for pointer operations
akallabeth [Thu, 3 Dec 2020 13:09:16 +0000 (14:09 +0100)]
Fixed #6635: Use correct window handle for pointer operations

(cherry picked from commit e8fe552ed4759327d63abf637f464839b2d6306a)

3 years agoFixed #6518
akallabeth [Tue, 20 Oct 2020 15:07:58 +0000 (17:07 +0200)]
Fixed #6518

(cherry picked from commit 38a79be33f429b5e556f8185eb94a73c8aa45bb9)

3 years agoCleaned up rdpei channel, updated to current spec.
Armin Novak [Wed, 11 Nov 2020 07:54:46 +0000 (08:54 +0100)]
Cleaned up rdpei channel, updated to current spec.

(cherry picked from commit bd061fc291108bad67ce94dd92e1fdb31e0c0cae)

3 years agoFixed possible out of bound access in usb channel.
akallabeth [Tue, 10 Nov 2020 08:02:35 +0000 (09:02 +0100)]
Fixed possible out of bound access in usb channel.

(cherry picked from commit 2e5280feecc3cd692f9930f9b7ed26129423a1a1)

3 years agoX11: Scale cursor when SmartSizing is on
Nathan Loewen [Tue, 8 Sep 2020 15:12:27 +0000 (10:12 -0500)]
X11: Scale cursor when SmartSizing is on

(cherry picked from commit f4f795f3233c56fe7f4cd579777115b77f49da1e)

3 years agolet freerdp_image_scale() determine step size
Nathan Loewen [Mon, 7 Sep 2020 02:14:17 +0000 (21:14 -0500)]
let freerdp_image_scale() determine step size

(cherry picked from commit cba618115471a7072902aa137af5962f0e0c4c1e)

3 years agoRespect invalidRegion in progressive_compress
akallabeth [Tue, 15 Dec 2020 15:02:34 +0000 (16:02 +0100)]
Respect invalidRegion in progressive_compress

(cherry picked from commit 4a7ec674e601e3680161a0dfbda67dc07477eb8b)

3 years agoFixed progressive decoding without subbanddiff
akallabeth [Tue, 15 Dec 2020 08:58:37 +0000 (09:58 +0100)]
Fixed progressive decoding without subbanddiff

(cherry picked from commit e3445eefab77c6666d760fa042f141c0a2d2965a)

3 years agoCleaned up rfx API
akallabeth [Mon, 14 Dec 2020 16:44:30 +0000 (17:44 +0100)]
Cleaned up rfx API

(cherry picked from commit 25a8abc4eb0a6d6a115169b5f0f762e3308b4026)

3 years agoClean up drdynvc channels porperly locked.
akallabeth [Fri, 6 Nov 2020 12:38:47 +0000 (13:38 +0100)]
Clean up drdynvc channels porperly locked.

(cherry picked from commit 7f1cca78aa9e4cf65cb38c9b741566fbf7dce2d0)

3 years agoFixed primitives test
Armin Novak [Mon, 7 Sep 2020 09:48:06 +0000 (11:48 +0200)]
Fixed primitives test

(cherry picked from commit b6f392215225a9aae9d257551505c169ac23e9ef)

3 years agoFixed _aligned_recalloc
Armin Novak [Mon, 7 Sep 2020 09:05:45 +0000 (11:05 +0200)]
Fixed _aligned_recalloc

(cherry picked from commit cad1dd39e23f45b36e4815129bdc3d99fcbd8c2b)

3 years agoFixed unit tests run under memory sanitizer
Armin Novak [Mon, 7 Sep 2020 08:42:28 +0000 (10:42 +0200)]
Fixed unit tests run under memory sanitizer

(cherry picked from commit 816e792e3f468eebf3c82416b9ef33637c9bd5cc)

3 years agoRemoved invalid check
akallabeth [Tue, 17 Nov 2020 08:04:52 +0000 (09:04 +0100)]
Removed invalid check

(cherry picked from commit e019ed65668b260542ee51b096585abb77354881)

3 years agoImplemented 2.2.1.17.1 Persistent Key List PDU Data, added checks
akallabeth [Thu, 19 Nov 2020 14:21:49 +0000 (15:21 +0100)]
Implemented 2.2.1.17.1 Persistent Key List PDU Data, added checks

* Implemented missing server side version of PDU (just skip data)
* Refactored read/write functions to properly check stream
  length/capacity and handle return values.

(cherry picked from commit ec3c333656b4d8a00ff278a70b52c11b18e2d643)

3 years agoFixed rdp_capability_set_start checks
akallabeth [Thu, 19 Nov 2020 13:47:08 +0000 (14:47 +0100)]
Fixed rdp_capability_set_start checks

(cherry picked from commit a13e0f1a08c44a4c6a6f037c9b849904a0a6c30e)

3 years agoCheck stream capacity in rdp_capability_set_finish
akallabeth [Thu, 19 Nov 2020 13:42:34 +0000 (14:42 +0100)]
Check stream capacity in rdp_capability_set_finish

(cherry picked from commit 6b0d2a2c3e05828248ef0286e764b9e578989ddf)

3 years agoFixed missing stream length checks.
akallabeth [Thu, 19 Nov 2020 13:23:03 +0000 (14:23 +0100)]
Fixed missing stream length checks.

(cherry picked from commit f7f8c3907d1c2e45c3545111ad3f3790e5037629)

3 years agoAdded data_pdu_type_to_string
akallabeth [Thu, 19 Nov 2020 12:42:28 +0000 (13:42 +0100)]
Added data_pdu_type_to_string

(cherry picked from commit b6b8d74521364bcf9c3ba2296d43e9fd3413e429)

3 years agoFixed sending of clipboard format request response
akallabeth [Thu, 26 Nov 2020 15:34:28 +0000 (16:34 +0100)]
Fixed sending of clipboard format request response

If a request was pending and new formats were announced the response
to a ServerFormatDataRequest was never sent.

(cherry picked from commit 2efb7d92745614a92c66b721205689a433248d31)

3 years agoFixed primitiveYUV unit test.
akallabeth [Tue, 12 Jan 2021 12:41:29 +0000 (13:41 +0100)]
Fixed primitiveYUV unit test.

(cherry picked from commit f357b9325fed388f0a6c86a403f5f8cc6188097f)

3 years agoIgnore alpha channel during color conversion.
akallabeth [Tue, 12 Jan 2021 08:41:09 +0000 (09:41 +0100)]
Ignore alpha channel during color conversion.

Most GFX graphics do not carry alpha data. Keep the original
alpha value unless specified otherwise.

(cherry picked from commit 115532ef5a71676a946c9d268dd1294daf99e52d)

3 years agoFixed SCardGetAttrib pbAttr=NULL argument
akallabeth [Mon, 25 Jan 2021 15:22:50 +0000 (16:22 +0100)]
Fixed SCardGetAttrib pbAttr=NULL argument

If fpbAttrIsNULL!=0 set pbAttr NULL on call to SCardGetAttrib

(cherry picked from commit 61b785a89b6a7dc4eab9f8c74d9afa2da6e5a8e6)

3 years ago[MAC] Keep original return value for client termination
Armin Novak [Fri, 22 Jan 2021 10:25:18 +0000 (11:25 +0100)]
[MAC] Keep original return value for client termination

(cherry picked from commit 9e63f35cc57da6ba79b0a76207848a85a75769a6)

3 years agoFixed missing check for fastpath input messages
akallabeth [Fri, 22 Jan 2021 07:24:16 +0000 (08:24 +0100)]
Fixed missing check for fastpath input messages

Input events are only allowed after a connection was established
(connection state is active)
This check aborts input sending when done before that.

(cherry picked from commit 102869f6a860140174da9dd3189babf6966c9149)

3 years agoDo not eliminate original error status.
akallabeth [Fri, 22 Jan 2021 08:32:51 +0000 (09:32 +0100)]
Do not eliminate original error status.

(cherry picked from commit 050a68fec901030c7428852f8f536ace055eb2f7)

3 years agoRefactored freerdp_client_settings_command_line_status_print_ex
akallabeth [Fri, 22 Jan 2021 07:40:03 +0000 (08:40 +0100)]
Refactored freerdp_client_settings_command_line_status_print_ex

Now returns 0 if help or version information was requested.

(cherry picked from commit 531dd81836f2c97fcfcfeabdb9671fb76409ce8d)

3 years agoclient: Fix exit codes for /help and similar option
Ondrej Holy [Thu, 21 Jan 2021 13:21:09 +0000 (14:21 +0100)]
client: Fix exit codes for /help and similar option

Currently, non-zero exit code is returned for /version, /buildconfig, /help,
/monitor-list, /kbd-list and /kbd-lang-list command-line options for several
clients. This is against conventions because 0 is usually returned in
such cases. Also, there is potentially another problem that the returned
codes overflow on UNIX systems (where the exit code is a number between 0
and 255). Let's fix the clients to return 0 in the mentioned cases to honor
conventions and 1 for the command-line parsing errors (or -1 for clients
who already use that value).

Fixes: https://github.com/FreeRDP/FreeRDP/issues/6686
(cherry picked from commit 3ee4cabcfad3a9ccc3c59be21245b57c17e7ae75)

3 years agochannels/smartcard: Fix race in channel cleanup
Martin Fleisz [Thu, 21 Jan 2021 09:10:44 +0000 (10:10 +0100)]
channels/smartcard: Fix race in channel cleanup

(cherry picked from commit 1155aade7f52fb594463370004a7a2766787d0d7)

3 years agoFixed const correctness of RECTANGLE_16 variable
Armin Novak [Mon, 18 Jan 2021 08:34:18 +0000 (09:34 +0100)]
Fixed const correctness of RECTANGLE_16 variable

(cherry picked from commit 9549d090ab849c405cb486fad6c9dd3867b28c45)

3 years agoFixed pcap capture function const correctness
Armin Novak [Mon, 18 Jan 2021 08:25:03 +0000 (09:25 +0100)]
Fixed pcap capture function const correctness

(cherry picked from commit 87e89bc719110ea369ae431e12f4e91f99cc9304)

3 years agoFix ColorFidelity use
Armin Novak [Mon, 18 Jan 2021 08:18:55 +0000 (09:18 +0100)]
Fix ColorFidelity use

(cherry picked from commit 8187ab7732dd0184e1123b1c39790a246f9912a6)

3 years agoCheck drive to hotplug for already being redirected
akallabeth [Fri, 15 Jan 2021 09:41:12 +0000 (10:41 +0100)]
Check drive to hotplug for already being redirected

some hotplug implementations report the same drive multiple times.
to avoid redirecting the same drive multiple times check if it is
already in the list before adding.

(cherry picked from commit 9e8d3fbbf5ad7bb75799a8aca9fafa9c2dcf7fd9)

3 years agoFix color fidelity issues with windows 7
Armin Novak [Wed, 13 Jan 2021 15:09:07 +0000 (16:09 +0100)]
Fix color fidelity issues with windows 7

(cherry picked from commit 57b58df80644f142067a489640edc40f006329a7)

3 years agoFixed problematic cast of integer mask to bool
Armin Novak [Wed, 13 Jan 2021 10:52:24 +0000 (11:52 +0100)]
Fixed problematic cast of integer mask to bool

(cherry picked from commit 8c353e9292f18e938b21f3369ba86d0f71359815)

3 years agoprimitives: Respect alpha values in YUV444 SSE pixel routine
Martin Fleisz [Mon, 11 Jan 2021 12:22:28 +0000 (13:22 +0100)]
primitives: Respect alpha values in YUV444 SSE pixel routine

(cherry picked from commit 9eaa820818571d23bd8604fbbc1ff9fa7c634967)

3 years agocore: Remove error code from string returned by rpc_error_to_string
Martin Fleisz [Thu, 7 Jan 2021 15:28:34 +0000 (16:28 +0100)]
core: Remove error code from string returned by rpc_error_to_string

This PR removes the error code from the error string returned by
rpc_error_to_string. The error code is passed into the function so it is
not necessary to append it to the returned string as well.

The PR also fixes the screwed formatting of the error code tables.

(cherry picked from commit c78566d2a239648087949dc4ae58e18093f8bf6c)

3 years agowinpr/clipboard: Also save lastWriteTime for FILEDESCRIPTORW
Pascal Nowack [Wed, 30 Dec 2020 01:17:43 +0000 (02:17 +0100)]
winpr/clipboard: Also save lastWriteTime for FILEDESCRIPTORW

Currently, when a local uri-list is converted into a FILEDESCRIPTORW
list, WinPR doesn't submit the last write time for each file.
The result of this is that the last write time of each file on the
other peer will have the current time and not the actual last write
time that is present on the peer, where the files were copied from.

Fix this by also writing the last write time in addition to the
FD_WRITESTIME flag.

(cherry picked from commit 9ba614a1e3314d9d3daa6e461e7d360c67c8d000)

3 years agox11: use correct contact flag names in xf_input_touch_state_string
kubistika [Sun, 27 Dec 2020 15:12:18 +0000 (17:12 +0200)]
x11: use correct contact flag names in xf_input_touch_state_string

(cherry picked from commit a94fe816a4dce96a26cd2ef284f525181d75c865)

3 years agoFix parsing of current keyboard locale
Martin Fleisz [Wed, 23 Dec 2020 13:44:31 +0000 (14:44 +0100)]
Fix parsing of current keyboard locale

(cherry picked from commit 2e59baa33c23cbd0e0ef6e432d8ef202caa34303)

3 years agoFixed definition of FILEDESCRIPTORW
akallabeth [Tue, 22 Sep 2020 10:58:41 +0000 (12:58 +0200)]
Fixed definition of FILEDESCRIPTORW

(cherry picked from commit 33df98f204ad72a34c1d0bb32859e3b8c030af7d)

3 years agoMerge pull request #6623 from akallabeth/stable-2.0-backports
Martin Fleisz [Mon, 11 Jan 2021 09:47:45 +0000 (10:47 +0100)]
Merge pull request #6623 from akallabeth/stable-2.0-backports

stable backports

3 years agoMerge pull request #6671 from akallabeth/stable-2.0-progressive
Martin Fleisz [Mon, 11 Jan 2021 09:36:52 +0000 (10:36 +0100)]
Merge pull request #6671 from akallabeth/stable-2.0-progressive

Backported #6670: Progressive decoding of subbanddiff

3 years agoBackported #6670: Progressive decoding of subbanddiff
akallabeth [Tue, 15 Dec 2020 16:00:22 +0000 (17:00 +0100)]
Backported #6670: Progressive decoding of subbanddiff

Properly decode tiles without subbanddiff so connections with
xfreerdp /gfx /v:<foo> work with ogon and the required progressive
codec is correct.

3 years agoFixed #6656: invalid read of proxy port.
akallabeth [Thu, 10 Dec 2020 06:38:13 +0000 (07:38 +0100)]
Fixed #6656: invalid read of proxy port.

(cherry picked from commit 3c237fd687c043d4488113d21292f1103bac9769)

3 years agoMoved clipboard hasHugeFileSupport to end of struct
akallabeth [Fri, 4 Dec 2020 13:09:28 +0000 (14:09 +0100)]
Moved clipboard hasHugeFileSupport to end of struct

(cherry picked from commit 0c96c3a71c1c74fb16131f4fa8266d2ae4d73367)

3 years agoFixed #6632
akallabeth [Thu, 3 Dec 2020 06:22:17 +0000 (07:22 +0100)]
Fixed #6632

(cherry picked from commit ceb0e8b4f1facb58849b2573fe60e3e512879a77)

3 years agoFix for mac mousewheel.
Keith Johnston [Tue, 6 Oct 2020 23:11:36 +0000 (16:11 -0700)]
Fix for mac mousewheel.

(cherry picked from commit 87a4a8484e65ab591ef815ed0700ab0c90994a77)
(cherry picked from commit c0ecee9d69533095bfdb3dbaf9e76747e5e3a7ab)

3 years agoRemoved obsolete connectErrorCode
Armin Novak [Fri, 11 Sep 2020 08:14:14 +0000 (10:14 +0200)]
Removed obsolete connectErrorCode

(cherry picked from commit 3b63903d3fbca0c1b1614aa93ea9ede955da692d)

3 years agoAllow autoreconnect for ERRINFO_GRAPHICS_SUBSYSTEM_FAILED
akallabeth [Thu, 26 Nov 2020 14:38:17 +0000 (15:38 +0100)]
Allow autoreconnect for ERRINFO_GRAPHICS_SUBSYSTEM_FAILED

As discussed in #4717 allow autoreconnect to succeed if that
specific error code was returned as disconnection reason.

(cherry picked from commit 552a7ca25f60e9a00585ec298c816911dcf71383)

3 years agochannels/audin: Request correct media type in audin channel on Mac
Martin Fleisz [Fri, 20 Nov 2020 13:09:37 +0000 (14:09 +0100)]
channels/audin: Request correct media type in audin channel on Mac

(cherry picked from commit 4a952977c17001b3bb8becdeb4547846ca2b392a)

3 years agoAdded permission checks for mac audio backend.
Armin Novak [Mon, 19 Oct 2020 10:08:13 +0000 (12:08 +0200)]
Added permission checks for mac audio backend.

(cherry picked from commit 0e0eb5f41fe5f80385e83132972f9c00cb0b61cb)