Commit Graph

14798 Commits

Author SHA1 Message Date
Armin Novak
c6bd48f926 Use GetComputerName instead of gethostname
(cherry picked from commit 82165d95a9)
2022-04-06 10:22:06 +02:00
Armin Novak
732e946289 Updated changelog 2022-03-28 12:08:51 +02:00
Armin Novak
2008751c04 Replaced WINPR_ASSERT defines, use include 2022-03-28 12:08:51 +02:00
Armin Novak
0089ce25b4 Removed cached wlog pointer
(cherry picked from commit 77580466ae)
2022-03-28 12:08:51 +02:00
Armin Novak
e675ffcb35 Fixed warnings from WLOG_ASSERT
(cherry picked from commit 02896b0656)
2022-03-28 12:08:51 +02:00
Armin Novak
83dffd0009 Improve WINPR_ASSERT, log backtrace
(cherry picked from commit 9e94f1dace)
2022-03-28 12:08:51 +02:00
akallabeth
f522bcb63a Added option do disable WINPR_ASSERT
(cherry picked from commit 3a75228242)
2022-03-28 12:08:51 +02:00
Armin Novak
76660aab19 Added WINPR_ASSERT
Added a WinPR macro that can be used for WinPR and FreeRDP to
replace standard C assert.
It is more verbose and logs issues to WLog which makes it easier
for us to trace problems in the field.

(cherry picked from commit b435e6db9b)
2022-03-28 12:08:51 +02:00
Armin Novak
1c91d66a50 Changelog 2022-03-09 16:19:34 +01:00
Armin Novak
6462eca724 Workaround for [MS-RDPBCGR] 2.2.9.2.3 Frame Marker Command (TS_FRAME_MARKER)
Connections with  windows 2016 and 2019 sometimes receive short
frame marker. Ignore these to prevent disconnects

(cherry picked from commit 91ef44ed35)
2022-03-09 16:19:34 +01:00
Armin Novak
baf35cece9 Implemented #4341: Default to /network:auto
If no arguments are supplied, default to the behaviour of
/network:auto. This ensures the default experience is using the
best available graphics options.
As soon as any /network, /bpp, /rfx, /gfx, ... argument is used
only use these.

(cherry picked from commit d3168a1436)
2022-03-09 16:19:34 +01:00
Armin Novak
79207e6700 rfx_process_message verbose error log
(cherry picked from commit c194a68b1b)
2022-03-08 15:35:54 +01:00
Armin Novak
631e71bebd Added more log messages for SurfaceCommand failures
(cherry picked from commit c6f2040912)
2022-03-08 15:35:54 +01:00
Armin Novak
658a72980f Abort autoreconnect if a user cancel action was triggered.
(cherry picked from commit 15e7647f20)
2022-03-07 15:24:08 +01:00
Armin Novak
5e4347681d Changelog & version 2022-03-07 15:24:08 +01:00
Armin Novak
1e9485e4d9 Fixed #7696: Abort freerdp_connect if manually canceled
If freerdp_abort_connect is called, set FREERDP_ERROR_CONNECT_CANCELLED
This way freerdp_reconnect can distinguish between network issues and
user interaction and abort a retry attempt.

(cherry picked from commit a6b42ff6c9)
2022-03-07 15:24:08 +01:00
akallabeth
658abd5597 Updated changelog 2022-03-07 14:03:02 +01:00
akallabeth
8371d85dc5 Unified rdpsnd cleanup code
(cherry picked from commit 18db3e1df8)
2022-03-07 14:03:02 +01:00
akallabeth
334e8a8475 Backported rdpsnd channel cleanup fixes 2022-03-07 14:03:02 +01:00
Bernhard Miklautz
bd6521ed65 new: mention version detection in the ChangeLog 2022-03-07 13:40:27 +01:00
Bernhard Miklautz
71f3c3a49b new: add some basic documentation about version dectction
(cherry picked from commit 130fe26e62)
2022-03-07 13:40:27 +01:00
akallabeth
dd92a7a040 Respect USE_VERSION_FROM_GIT_TAG
(cherry picked from commit 20b2d4c7e4)
2022-03-07 13:40:27 +01:00
Bernhard Miklautz
b827e3767b
Merge pull request #7692 from akallabeth/stable-2.0.silence_info
Decreased logging verbosity for INFO level
2022-03-07 12:29:05 +01:00
akallabeth
de805f8565 Decreased logging verbosity for INFO level
(cherry picked from commit e6b0373859)
2022-03-03 10:52:00 +01:00
akallabeth
b076803219 Added openH264 decoder frame flush
(cherry picked from commit 366ad75bb4)
2022-02-28 08:51:58 +01:00
Armin Novak
8a5c034d54 Fixed duplicate comment warning 2022-02-22 12:41:11 +01:00
Armin Novak
9e497c22a9 Updated chanelog and version 2022-02-22 12:41:11 +01:00
Pascal Nowack
0c550ec982 rdpei/server: Fix PDU length for RDPINPUT_PROTOCOL_V300
When the server supports the protocol version RDPINPUT_PROTOCOL_V300,
the additional supportedFeatures field will be present.
The pduLength in the RDPINPUT_HEADER should, however, reflect this.

So, fix this error by writing the correct PDU length when the
supportedFeatures field is present.

(cherry picked from commit 1e18b53821)
2022-02-22 12:41:11 +01:00
Pascal Nowack
5e96f657f6 server/disp: Sanitize optional physical monitor size values
The server sided handling of the display control channel currently
treats the physical monitor size values as obligatory values.
When the physical monitor size is invalid according to the
documentation, it is supposed to be ignored.
However, this is currently not done, leading to an abort of the display
control channel handling, when using Remmina, as Remmina does not submit
physical-monitor- widths and -heights.

Fix this issue by sanitizing the physical monitor size values, instead
of handling them as obligatory values, where both the physical with and
the physical height must be constrained to the values in the
documentation.
2022-02-22 11:48:24 +01:00
akallabeth
4541b80e8b Add option for external thread to ainput server channel
(cherry picked from commit 538cd7cf8f)
2022-02-22 09:44:27 +01:00
Armin Novak
d866de5069 Extended AINPUT API:
* Each event now has a timestamp
* Relative and absolute events are sent simultaneously
* Added a flag indicating relative events are available

(cherry picked from commit deb8ef46dbdedefe22e22fc70665f80279f407b0)
2022-02-22 09:44:27 +01:00
akallabeth
55f3889a31 Added Advanced Input Channel
(cherry picked from commit 98b06b4639)
2022-02-22 09:44:27 +01:00
akallabeth
409ed441c1 Make mac native client build configuratble
(cherry picked from commit 32e01fe652)
2022-02-17 10:06:06 +00:00
akallabeth
ab935d94ef Fixed ICU include directories
(cherry picked from commit b790b67ee4)
2022-02-17 10:06:06 +00:00
Armin Novak
b369517e98 Fixed HexStrToBin, respect const input 2022-02-14 09:21:41 +00:00
Armin Novak
9f081069d8 Fixed possible leaks in TestSynchMultipleThreads
(cherry picked from commit 1947629b8e)
2022-02-14 09:21:41 +00:00
Hiroshi Ota
e480e97ea0 Fix missing KBD_JAPANESE condition
(cherry picked from commit 18e8a67f75)
2022-02-14 09:21:41 +00:00
Armin Novak
a633ae3532 Fixed #7636: GetStringUTFLength requires jstring argument
(cherry picked from commit f46f48dcd6)
2022-02-14 09:21:41 +00:00
akallabeth
9299d2fce1
Fix #7586: Update size of tile cache if required. (#7603)
(cherry picked from commit e0660ba694)
2022-01-28 09:07:35 +01:00
akallabeth
548e96d3bc Update nAvgBytesPerSec in audin_winmm_set_format
The format channel count and alignment may have changed.
Update nAvgBytesPerSec accordingly

(cherry picked from commit c6e84c4929)
2022-01-27 16:05:26 +01:00
akallabeth
1c1dd91560 [audin] Always reset dsp_context before open (#7342)
(cherry picked from commit 834fdf0046)
2022-01-27 16:05:26 +01:00
Martin Fleisz
aa3631db0a channel/rdpdr: Fix hotplug for drive redirection on Windows
The path was incorrectly cut of after the drive letter causing hot
plugged drives to show up empty and disconnecting the client if the
device was removed later on.

(cherry picked from commit 763f239bf0)
2022-01-27 15:01:48 +01:00
akallabeth
26f871b3e2 Added plausibility checks and assert to rdpgfx_read_header
(cherry picked from commit 6f154da1ae)
2022-01-27 10:25:40 +01:00
zbstao
1527cfcd2c Added pduLength check in rdpgfx_read_header function
if pduLength is zero will lead to an infinite loop in rdpgfx_recv_pdu function.

(cherry picked from commit 5b8db18f26)
2022-01-27 10:25:40 +01:00
akallabeth
4743cf58f2 Updated changelog 2022-01-27 09:56:29 +01:00
dance
5367101435 wayland: fixed memory corruption issue (write to free'd memory)
pass window and buffer index to buffer_release listener, so that it
fetches actual pointer to released buffer by wayland, instead of
directly passing a pointer to the UwacBuffer, which could result in
heap-use-after-free
2022-01-27 09:56:29 +01:00
Armin Novak
d807f6dbbc Added better way to check for H264 support
* Added a function that actually tests, if H264 is working.

(cherry picked from commit 95db33af44)
2022-01-26 12:38:11 +01:00
Armin Novak
3dfe3e8b57 Fixed too eager assert.
(cherry picked from commit 2ed5a6912b)
2022-01-26 12:38:11 +01:00
akallabeth
00900c5cbb Updated version and changelog. 2022-01-26 12:10:47 +01:00
Armin Novak
4b73d86880 Removed x264 related files from build 2022-01-26 12:10:47 +01:00