platform/upstream/freerdp.git
7 years agoclient/X11: teach RAIL to use clipboard redirection
ilammy [Thu, 18 Aug 2016 18:14:52 +0000 (21:14 +0300)]
client/X11: teach RAIL to use clipboard redirection

XSelection protocol does not define any global clipboard as there is on
Windows. Instead each window has its own property for clipboard content
(like CLIPBOARD or PRIMARY) and there is a global notion of clipboard
ownership.  Only one window can claim ownership of some clipboard type
at the moment.

FreeRDP uses CLIPBOARD for clipboard transfers (it's the one used by
applications when Ctrl+V is pressed). For regular desktop sessions the
session window itself is used for clipboard interactions via
xfc->drawable field. However, for remote app session there is no session
window. We cannot use the current remote app window as it may change or
be destroyed without closing the session. We also cannot use the root
window as it is already used for CF_RAW transfer protocol.

Therefore we create a simple dummy window to put into xfc->drawable for
this exact job: to act as a clipboard vessel on behalf of the entire
remote app session.

xf_create_window() usually creates the window as we immediately start in
RAIL mode when possible. xf_rail_enable_remoteapp_mode() is invoked only
when autologin failed or remote desktop had to show the session window
to the user for some reason.

7 years agoMerge pull request #3925 from akallabeth/avc_mf_decoder_fix
Martin Fleisz [Thu, 27 Apr 2017 14:45:18 +0000 (16:45 +0200)]
Merge pull request #3925 from akallabeth/avc_mf_decoder_fix

Fixed MF H264 buffer allocation.

7 years agoMerge pull request #3919 from akallabeth/rdpdr_hotplug_fix
David Fort [Thu, 27 Apr 2017 12:11:51 +0000 (14:11 +0200)]
Merge pull request #3919 from akallabeth/rdpdr_hotplug_fix

Fixed hotplug mount locations.

7 years agoFixed FindFirstFileA, do not strip trailing slash
Armin Novak [Thu, 27 Apr 2017 06:58:01 +0000 (08:58 +0200)]
Fixed FindFirstFileA, do not strip trailing slash

7 years agoMerge pull request #3927 from DavBfr/fix-win-printer
Bernhard Miklautz [Thu, 27 Apr 2017 06:55:39 +0000 (08:55 +0200)]
Merge pull request #3927 from DavBfr/fix-win-printer

Bugfix: wrong test regarding the first GetPrinter

7 years agoFixed memory corruption in Find*FileW
Armin Novak [Thu, 27 Apr 2017 06:31:53 +0000 (08:31 +0200)]
Fixed memory corruption in Find*FileW

7 years agoBugfix: wrong test regarding the first GetPrinter. This first call will always return...
David PHAM-VAN [Tue, 25 Apr 2017 18:50:28 +0000 (11:50 -0700)]
Bugfix: wrong test regarding the first GetPrinter. This first call will always return FALSE because the goal of this call is to know the size needed.

7 years agoMerge pull request #3926 from ShaunMaher/master
akallabeth [Tue, 25 Apr 2017 08:30:42 +0000 (10:30 +0200)]
Merge pull request #3926 from ShaunMaher/master

WS_EX_NOACTIVATE treated as unmanaged

7 years agoWS_EX_NOACTIVATE treated as unmanaged\nWindows that carry the WS_EX_NOACTIVATE are...
Shaun Maher [Sat, 22 Apr 2017 08:44:37 +0000 (18:44 +1000)]
WS_EX_NOACTIVATE treated as unmanaged\nWindows that carry the WS_EX_NOACTIVATE are treated the same as WS_EX_TOOLWINDOW in that they should not be handled as normal windows by the X window manager.  The prevents an issue with MS Outlook 2013 (and probably other applications) where attempting to resize the vertical columns causes some sort of WS_EX_NOACTIVATE window to be created which steals focus and aborts the resizing action.

7 years agoFixed MF H264 buffer allocation.
Armin Novak [Thu, 20 Apr 2017 10:02:04 +0000 (12:02 +0200)]
Fixed MF H264 buffer allocation.

7 years agoMerge pull request #3923 from rjcorrig/kb4015193
David Fort [Wed, 19 Apr 2017 07:23:14 +0000 (09:23 +0200)]
Merge pull request #3923 from rjcorrig/kb4015193

winpr: Updates time zone data to April 2017

7 years agoFix #3922: Use stat insead of lstat
Armin Novak [Wed, 19 Apr 2017 06:28:00 +0000 (08:28 +0200)]
Fix #3922: Use stat insead of lstat

7 years agoCleaned up includes.
Armin Novak [Wed, 19 Apr 2017 06:27:22 +0000 (08:27 +0200)]
Cleaned up includes.

7 years agoUpdate timezone data to Apr 2017
Robert Corrigan [Tue, 18 Apr 2017 20:15:13 +0000 (16:15 -0400)]
Update timezone data to Apr 2017

7 years agoAdd legacy mount locations, limited max depth.
Armin Novak [Tue, 18 Apr 2017 07:13:35 +0000 (09:13 +0200)]
Add legacy mount locations, limited max depth.

7 years agoFixed WCHAR/CHAR conversion for drive path.
Armin Novak [Thu, 13 Apr 2017 14:20:01 +0000 (16:20 +0200)]
Fixed WCHAR/CHAR conversion for drive path.

7 years agoFixed hotplug mount locations.
Armin Novak [Thu, 13 Apr 2017 13:55:17 +0000 (15:55 +0200)]
Fixed hotplug mount locations.

7 years agoMerge pull request #3901 from akallabeth/openssl_1_1_no_legacy
Norbert Federa [Tue, 11 Apr 2017 13:00:30 +0000 (15:00 +0200)]
Merge pull request #3901 from akallabeth/openssl_1_1_no_legacy

Fixed OpenSSL 1.1 no legacy compile issues.

7 years agoMerge pull request #3912 from nfedera/fix-gfx-gdihw-multimon
akallabeth [Tue, 11 Apr 2017 11:44:36 +0000 (13:44 +0200)]
Merge pull request #3912 from nfedera/fix-gfx-gdihw-multimon

client/x11: fix gfx drawing bug with /multimon

7 years agoMerge pull request #3902 from akallabeth/file_leak_fix
Norbert Federa [Tue, 11 Apr 2017 10:50:15 +0000 (12:50 +0200)]
Merge pull request #3902 from akallabeth/file_leak_fix

Fixed a memory leak and bad free.

7 years agoclient/x11: fix gfx drawing bug with /multimon
Norbert Federa [Tue, 11 Apr 2017 10:30:37 +0000 (12:30 +0200)]
client/x11: fix gfx drawing bug with /multimon

The surface's damage region is not relative to the output but
lives in its own universe starting at origin 0,0.

Also fixed the drawing coordinates used in the XRENDER code path
which is used with /smart-sizing

7 years agoAdded error return in GetFileAttributesExA.
Armin Novak [Tue, 11 Apr 2017 09:32:45 +0000 (11:32 +0200)]
Added error return in GetFileAttributesExA.

7 years agoFixed broken scoping.
Armin Novak [Thu, 6 Apr 2017 15:54:44 +0000 (17:54 +0200)]
Fixed broken scoping.

7 years agoFixed a memory leak and bad free.
Armin Novak [Thu, 6 Apr 2017 15:46:07 +0000 (17:46 +0200)]
Fixed a memory leak and bad free.

7 years agoMerge pull request #3864 from DavBfr/rewrite-disk-redirection
David Fort [Thu, 6 Apr 2017 15:32:21 +0000 (17:32 +0200)]
Merge pull request #3864 from DavBfr/rewrite-disk-redirection

Rewrite disk redirection using WinPR

7 years agoFixed OpenSSL 1.1 no legacy compile issues.
Armin Novak [Thu, 6 Apr 2017 08:37:28 +0000 (10:37 +0200)]
Fixed OpenSSL 1.1 no legacy compile issues.

7 years agoMerge pull request #3897 from akallabeth/mac_os_fix
Bernhard Miklautz [Thu, 6 Apr 2017 07:54:26 +0000 (09:54 +0200)]
Merge pull request #3897 from akallabeth/mac_os_fix

OSX: Updated RPATH settings for each lib.

7 years agoFixed RPATH settings for OS X
Armin Novak [Thu, 6 Apr 2017 06:05:39 +0000 (08:05 +0200)]
Fixed RPATH settings for OS X

7 years agoFix indentation
David PHAM-VAN [Wed, 5 Apr 2017 22:35:03 +0000 (15:35 -0700)]
Fix indentation

7 years agoMerge pull request #3899 from akallabeth/neon_fix
Norbert Federa [Wed, 5 Apr 2017 10:36:38 +0000 (12:36 +0200)]
Merge pull request #3899 from akallabeth/neon_fix

Fixed NEON YUV to RGB conversion issues.

7 years agoFixed NEON YUV to RGB conversion issues.
Armin Novak [Wed, 5 Apr 2017 09:37:48 +0000 (11:37 +0200)]
Fixed NEON YUV to RGB conversion issues.

7 years agoMerge pull request #3896 from nfedera/fix_gfx_progressive_decoding
Bernhard Miklautz [Tue, 4 Apr 2017 05:44:38 +0000 (07:44 +0200)]
Merge pull request #3896 from nfedera/fix_gfx_progressive_decoding

rdpegfx: fix RemoteFX Progressive Codec decoding

7 years agordpegfx: fix RemoteFX Progressive Codec decoding
Norbert Federa [Mon, 3 Apr 2017 16:59:58 +0000 (18:59 +0200)]
rdpegfx: fix RemoteFX Progressive Codec decoding

Since this comes via a Wire-To-Surface-2 PDU we don't have
any left/top/right/bottom destination values.
The current code has always dealt with zeros when updating the
invalid region which resulted in black rectangles.
The correct update region is determined during decompression.

7 years agoFix FindFirstFile return values
David PHAM-VAN [Fri, 31 Mar 2017 22:33:28 +0000 (15:33 -0700)]
Fix FindFirstFile return values

7 years agoMerge pull request #3892 from akallabeth/x11_gfx_surface_update
Norbert Federa [Fri, 31 Mar 2017 11:24:10 +0000 (13:24 +0200)]
Merge pull request #3892 from akallabeth/x11_gfx_surface_update

Update changed rectangles instead of extent.

7 years agoMerge pull request #3894 from akallabeth/cache_to_surface_fix
Norbert Federa [Fri, 31 Mar 2017 10:27:34 +0000 (12:27 +0200)]
Merge pull request #3894 from akallabeth/cache_to_surface_fix

Use exclusive coordinates in CacheToSurface.

7 years agoUse exclusive coordinates in CacheToSurface.
Armin Novak [Fri, 31 Mar 2017 10:06:21 +0000 (12:06 +0200)]
Use exclusive coordinates in CacheToSurface.

7 years agoUpdate changed rectangles instead of extent.
Armin Novak [Thu, 30 Mar 2017 15:23:04 +0000 (17:23 +0200)]
Update changed rectangles instead of extent.

7 years agoMerge pull request #3891 from nfedera/fix-rdpegfx-gdisw-drawing
David Fort [Thu, 30 Mar 2017 14:59:39 +0000 (16:59 +0200)]
Merge pull request #3891 from nfedera/fix-rdpegfx-gdisw-drawing

improve rdpegfx drawing for software gdi

7 years agoimprove rdpegfx drawing for software gdi
Norbert Federa [Thu, 30 Mar 2017 13:42:13 +0000 (15:42 +0200)]
improve rdpegfx drawing for software gdi

process the region's rectangles individually instead of
just copying the extents

7 years agoMerge pull request #3865 from DavBfr/unicode-printer-name
David Fort [Wed, 29 Mar 2017 12:54:57 +0000 (14:54 +0200)]
Merge pull request #3865 from DavBfr/unicode-printer-name

Bugfix: Wrong encoding method used for printer name

7 years agoMerge pull request #3886 from akallabeth/warning_fixes_and_tests
Martin Fleisz [Wed, 29 Mar 2017 10:42:32 +0000 (12:42 +0200)]
Merge pull request #3886 from akallabeth/warning_fixes_and_tests

Fixes for AVC420, Warnings and tests

7 years agoFixed memory leak and return value check issue.
Armin Novak [Tue, 28 Mar 2017 15:56:44 +0000 (17:56 +0200)]
Fixed memory leak and return value check issue.

7 years agoFixed AVC420 SSE implementation and test.
Armin Novak [Tue, 28 Mar 2017 15:42:35 +0000 (17:42 +0200)]
Fixed AVC420 SSE implementation and test.

7 years agoFixed tests and dead store warnings.
Armin Novak [Tue, 28 Mar 2017 14:18:00 +0000 (16:18 +0200)]
Fixed tests and dead store warnings.

7 years agoMerge pull request #3884 from akallabeth/memleak_fix
David Fort [Tue, 28 Mar 2017 13:06:10 +0000 (15:06 +0200)]
Merge pull request #3884 from akallabeth/memleak_fix

Fixed leak of client random.

7 years agoFixed leak of client random.
Armin Novak [Tue, 28 Mar 2017 12:33:02 +0000 (14:33 +0200)]
Fixed leak of client random.

7 years agoMerge pull request #3883 from akallabeth/gfx_x11_speedup
Norbert Federa [Tue, 28 Mar 2017 10:35:30 +0000 (12:35 +0200)]
Merge pull request #3883 from akallabeth/gfx_x11_speedup

Gfx x11 speedup

7 years agoLet bitmaps keep XBitmap during lifetime.
Armin Novak [Tue, 28 Mar 2017 09:49:47 +0000 (11:49 +0200)]
Let bitmaps keep XBitmap during lifetime.

7 years ago X11 GFX: Restrict to region, ignore alpha
Armin Novak [Tue, 28 Mar 2017 09:49:13 +0000 (11:49 +0200)]
 X11 GFX: Restrict to region, ignore alpha

* Restrict the screen update to the changed region
* Ignore differences in color format alpha

7 years agoFixed invalid return from xf_rail_window_icon
Armin Novak [Tue, 28 Mar 2017 09:47:46 +0000 (11:47 +0200)]
Fixed invalid return from xf_rail_window_icon

7 years agoMerge pull request #3882 from nfedera/fix-x11-client-perf
akallabeth [Tue, 28 Mar 2017 06:44:29 +0000 (08:44 +0200)]
Merge pull request #3882 from nfedera/fix-x11-client-perf

some performance fixes

7 years agoFix memory leaks, Mixed declarations
David PHAM-VAN [Mon, 27 Mar 2017 18:11:54 +0000 (11:11 -0700)]
Fix memory leaks, Mixed declarations

7 years agosome performance fixes
Norbert Federa [Mon, 27 Mar 2017 07:00:27 +0000 (09:00 +0200)]
some performance fixes

- draw only the updated region in the gdi and x11 surface bits implementation
- don't repeatedly call IsProcessorFeaturePresentEx in rfx rlgr decoder
- fix ugly and unaligned profiler print layout and remove an unnecessary value

7 years agoRemove unused variable and check return codes
David PHAM-VAN [Tue, 14 Mar 2017 16:37:17 +0000 (09:37 -0700)]
Remove unused variable and check return codes

7 years agoMerge pull request #3875 from hardening/client_random
Martin Fleisz [Fri, 24 Mar 2017 09:34:12 +0000 (10:34 +0100)]
Merge pull request #3875 from hardening/client_random

Client random

7 years agoStore client_random in server mode
David Fort [Tue, 21 Mar 2017 09:32:17 +0000 (10:32 +0100)]
Store client_random in server mode

We need the client_random in server mode when the client does RDP security and
tries to reconnect using the cookie.

7 years agoFixed typo
David Fort [Tue, 21 Mar 2017 09:31:21 +0000 (10:31 +0100)]
Fixed typo

7 years agoMerge pull request #3871 from akallabeth/logon_error_info_log
Martin Fleisz [Mon, 20 Mar 2017 10:21:58 +0000 (11:21 +0100)]
Merge pull request #3871 from akallabeth/logon_error_info_log

Print logon error info.

7 years agoMerge pull request #3870 from akallabeth/mouse_cursor_23bpp
Bernhard Miklautz [Mon, 20 Mar 2017 09:09:23 +0000 (10:09 +0100)]
Merge pull request #3870 from akallabeth/mouse_cursor_23bpp

Ignore AND mask for 32bpp cursor. #3863

7 years agoMerge pull request #3873 from lluixhi/master
David Fort [Mon, 20 Mar 2017 07:59:05 +0000 (08:59 +0100)]
Merge pull request #3873 from lluixhi/master

Support LibreSSL

7 years agoSupport LibreSSL
Aric Belsito [Sun, 19 Mar 2017 20:58:24 +0000 (13:58 -0700)]
Support LibreSSL

Broken by the addition of OpenSSL 1.1.0 support.

7 years agoMisc Fixes
David PHAM-VAN [Fri, 17 Mar 2017 21:05:21 +0000 (14:05 -0700)]
Misc Fixes

7 years agoPrint logon error info.
Armin Novak [Fri, 17 Mar 2017 12:48:32 +0000 (13:48 +0100)]
Print logon error info.

7 years agoIgnore AND mask for 32bpp cursor. #3863
Armin Novak [Fri, 17 Mar 2017 08:42:20 +0000 (09:42 +0100)]
Ignore AND mask for 32bpp cursor. #3863

7 years agoVerify ConvertFromUnicode return values
David PHAM-VAN [Thu, 16 Mar 2017 21:48:02 +0000 (14:48 -0700)]
Verify ConvertFromUnicode return values

7 years agoFix Windows build
David PHAM-VAN [Wed, 15 Mar 2017 17:28:27 +0000 (10:28 -0700)]
Fix Windows build

7 years agoFix FileGetMode writable detection
David PHAM-VAN [Tue, 14 Mar 2017 19:41:11 +0000 (12:41 -0700)]
Fix FileGetMode writable detection

7 years agoFix Android build
David PHAM-VAN [Tue, 14 Mar 2017 17:48:10 +0000 (10:48 -0700)]
Fix Android build

7 years agoMerge pull request #3867 from akallabeth/wlog_format_nightly_fix
Bernhard Miklautz [Tue, 14 Mar 2017 10:20:36 +0000 (11:20 +0100)]
Merge pull request #3867 from akallabeth/wlog_format_nightly_fix

Fix format string is not a string literal

7 years agoFix format string is not a string literal
Armin Novak [Tue, 14 Mar 2017 09:56:00 +0000 (10:56 +0100)]
Fix format string is not a string literal

7 years agoBugfix: Wrong encoding method used for printer name.
David PHAM-VAN [Mon, 13 Mar 2017 21:55:34 +0000 (14:55 -0700)]
Bugfix: Wrong encoding method used for printer name.

7 years agoFix WinPR FindFirstFile/FindNextFile functions
David PHAM-VAN [Wed, 30 Nov 2016 21:54:03 +0000 (13:54 -0800)]
Fix WinPR FindFirstFile/FindNextFile functions

7 years agoFix WinPR File creation functions
David PHAM-VAN [Wed, 30 Nov 2016 21:53:10 +0000 (13:53 -0800)]
Fix WinPR File creation functions

7 years agoAdd Windows Errors to File operations
David PHAM-VAN [Wed, 30 Nov 2016 21:51:26 +0000 (13:51 -0800)]
Add Windows Errors to File operations

7 years agoAdd specific Xrdp workarounds
David PHAM-VAN [Wed, 30 Nov 2016 22:22:24 +0000 (14:22 -0800)]
Add specific Xrdp workarounds

This reverts commit 36d95d73715bd081019538c55f74294aa9faffba.

7 years agoRewrite drive channel using WinPR functions
David PHAM-VAN [Wed, 30 Nov 2016 21:48:33 +0000 (13:48 -0800)]
Rewrite drive channel using WinPR functions

7 years agoadd _wcsrchr function
David PHAM-VAN [Wed, 30 Nov 2016 21:56:10 +0000 (13:56 -0800)]
add _wcsrchr function

7 years agoAdd missing functions to WinPR
David PHAM-VAN [Wed, 30 Nov 2016 21:47:06 +0000 (13:47 -0800)]
Add missing functions to WinPR

7 years agoMerge pull request #3862 from uglym8/fix_stack_peek
Martin Fleisz [Mon, 13 Mar 2017 14:11:34 +0000 (15:11 +0100)]
Merge pull request #3862 from uglym8/fix_stack_peek

Fix Stack_Peek

7 years agoMerge pull request #3861 from akallabeth/afreerdp-fix 2.0.0-beta1+android11
Martin Fleisz [Mon, 13 Mar 2017 12:46:23 +0000 (13:46 +0100)]
Merge pull request #3861 from akallabeth/afreerdp-fix

Afreerdp fix database test server

7 years agoFix Stack_Peek
Alexander Zakharov [Mon, 13 Mar 2017 12:45:27 +0000 (15:45 +0300)]
Fix Stack_Peek

7 years agoCleaned up database access code.
Armin Novak [Mon, 13 Mar 2017 11:05:49 +0000 (12:05 +0100)]
Cleaned up database access code.

7 years agoUsing plain HTTP links for freerdp.com
Armin Novak [Mon, 13 Mar 2017 08:21:07 +0000 (09:21 +0100)]
Using plain HTTP links for freerdp.com

7 years agoMerge pull request #3856 from hardening/rail_capabilities
Bernhard Miklautz [Fri, 10 Mar 2017 10:41:28 +0000 (11:41 +0100)]
Merge pull request #3856 from hardening/rail_capabilities

Don't forget to send the RAIL capabilities in server mode

7 years agoAdd more RAIL option flags
David Fort [Fri, 10 Mar 2017 09:36:26 +0000 (10:36 +0100)]
Add more RAIL option flags

7 years agoDon't forget to send the RAIL capabilities in server mode
David Fort [Thu, 9 Mar 2017 20:57:55 +0000 (21:57 +0100)]
Don't forget to send the RAIL capabilities in server mode

7 years agoMerge pull request #3855 from akallabeth/afreerdp_help_v2
Martin Fleisz [Thu, 9 Mar 2017 15:10:37 +0000 (16:10 +0100)]
Merge pull request #3855 from akallabeth/afreerdp_help_v2

Readded css for phone layout.

7 years agoReadded css for phone layout.
Armin Novak [Thu, 9 Mar 2017 14:08:01 +0000 (15:08 +0100)]
Readded css for phone layout.

7 years agoMerge pull request #3854 from akallabeth/afreerdp_help_unify
Martin Fleisz [Thu, 9 Mar 2017 13:24:00 +0000 (14:24 +0100)]
Merge pull request #3854 from akallabeth/afreerdp_help_unify

Afreerdp help unify

7 years agoFixed help pages.
Armin Novak [Thu, 9 Mar 2017 12:55:19 +0000 (13:55 +0100)]
Fixed help pages.

7 years agoFixed keyboard show/hide
Armin Novak [Thu, 9 Mar 2017 12:55:05 +0000 (13:55 +0100)]
Fixed keyboard show/hide

7 years agoMerge pull request #3853 from akallabeth/afreerdp_script_update
Martin Fleisz [Thu, 9 Mar 2017 10:59:47 +0000 (11:59 +0100)]
Merge pull request #3853 from akallabeth/afreerdp_script_update

Update for android scripts, per arch includes.

7 years agoMerge pull request #3847 from akallabeth/ffmpeg_define_fix
Martin Fleisz [Thu, 9 Mar 2017 10:35:31 +0000 (11:35 +0100)]
Merge pull request #3847 from akallabeth/ffmpeg_define_fix

Fixed #3782 and #2953: Using new libav defines.

7 years agoUpdate for android scripts, per arch includes.
Armin Novak [Thu, 9 Mar 2017 08:30:38 +0000 (09:30 +0100)]
Update for android scripts, per arch includes.

7 years agoMerge pull request #3851 from akallabeth/about_line_breaks
Martin Fleisz [Thu, 9 Mar 2017 10:27:10 +0000 (11:27 +0100)]
Merge pull request #3851 from akallabeth/about_line_breaks

aFreeRDP about page cleanup and parameter validation

7 years agoRemoved unused strings, translated missing ones.
Armin Novak [Thu, 9 Mar 2017 09:51:38 +0000 (10:51 +0100)]
Removed unused strings, translated missing ones.

7 years agoValidating advanced and screen settings.
Armin Novak [Thu, 9 Mar 2017 09:22:50 +0000 (10:22 +0100)]
Validating advanced and screen settings.

7 years agoValidating advanced settings before use.
Armin Novak [Thu, 9 Mar 2017 09:11:39 +0000 (10:11 +0100)]
Validating advanced settings before use.

7 years agoUpdated gradle and config printout.
Armin Novak [Thu, 9 Mar 2017 09:04:31 +0000 (10:04 +0100)]
Updated gradle and config printout.