Armin Novak
598ece4ae7
Fixed crash on drive hotplug shutdown.
2018-12-12 09:32:09 +01:00
Jonathan Lafontaine
35d7a1e38d
Allow fixed drive redirection on Windows (a:, c:, ...) and fix macos drive duplication.
2018-10-29 10:17:42 -04:00
Armin Novak
62c1696d4c
Removed use of unchecked sprintf
2018-08-27 14:34:42 +02:00
Armin Novak
114abad767
Removed use of strcpy.
2018-08-27 14:34:09 +02:00
Ondrej Holy
10bddb9fd9
channels/rdpdr: Fix leak found by covscan
...
leaked_storage: Variable "newbuf" going out of scope leaks the storage it points to.
leaked_storage: Variable "keys" going out of scope leaks the storage it points to.
leaked_storage: Variable "pKeys" going out of scope leaks the storage it points to.
leaked_storage: Variable "s" going out of scope leaks the storage it points to.
leaked_storage: Variable "computerNameW" going out of scope leaks the storage it points to.
leaked_storage: Variable "s" going out of scope leaks the storage it points to.
2018-08-22 13:35:43 +02:00
Armin Novak
4035ed46c8
Added automount flag for windows and macos implementations.
2018-07-30 12:37:19 +02:00
Armin Novak
e8393a22e2
Remember if drive was added by automout.
2018-07-30 12:31:11 +02:00
Armin Novak
a716dc244c
Removed duplicate resource free.
2018-06-18 10:23:57 +02:00
Armin Novak
357391bd93
Fixed channel duplicate disconnect handling
2018-04-09 11:26:43 +02:00
Armin Novak
2517755d25
Fixed thread function return and parameters.
2018-03-07 14:36:55 +01:00
Armin Novak
64cfd750f9
Fixed #4384 : Drive hotplug detection
2018-01-25 15:43:53 +01:00
David Fort
41823080f9
Fix users of Stream_GetPosition() that returns size_t
2017-12-11 22:38:58 +01:00
Armin Novak
9318707291
Added return check for ConvertFromUnicode.
2017-07-24 08:53:21 +02:00
Armin Novak
3586f8502c
Fixed missing unicode conversion for mac drive redirection.
2017-07-20 12:35:43 +02:00
Armin Novak
8fa6020b5f
Add legacy mount locations, limited max depth.
2017-04-18 09:13:35 +02:00
Armin Novak
c1872de641
Fixed WCHAR/CHAR conversion for drive path.
2017-04-13 16:20:01 +02:00
Armin Novak
b0599f8c54
Fixed hotplug mount locations.
2017-04-13 15:55:50 +02:00
Armin Novak
9f19da798c
Added attach/detach support for channels.
2016-12-19 17:07:01 +01:00
Norbert Federa
f71b6b46e8
fix string format specifiers
...
- fixed invalid, missing or additional arguments
- removed all type casts from arguments
- added missing (void*) typecasts for %p arguments
- use inttypes defines where appropriate
2016-12-16 13:48:43 +01:00
Norbert Federa
c6e6b44143
countless WLog/printf format specifier fixes
2016-11-25 17:06:25 +01:00
Martin Haimberger
7fe28a8a78
virtualChannel: removed static variable usage from
...
VirtualChannelApi
2016-11-23 04:17:56 -08:00
Martin Haimberger
088a04fa44
rdpdr: using new VirtualChannelEx api
2016-11-23 01:26:03 -08:00
Marc-André Moreau
dee76617d9
channels: remove thread-local storage usage
2016-11-15 11:41:01 -05:00
Marc-André Moreau
70c4646722
channels: restore global tables for initHandle, openHandle mappings instead of thread local storage
2016-11-14 15:23:05 -05:00
Armin Novak
9f5da483dc
Reformatted files touched in last 2 commits.
2016-10-06 13:43:12 +02:00
Armin Novak
88a3b8dd76
Initializing channel context in each thread.
2016-10-06 13:43:12 +02:00
Armin Novak
dadc5262ae
Removed static channel variables.
...
Global static variables do not work, if more than one instance
of an RDP client is running in the same process space.
Removed the varaibles where possible and replaced them with
thread local storage where necessary.
2016-10-06 13:43:09 +02:00
Armin Novak
35f1347d53
Fixed warnings and mac build.
2016-10-06 13:43:04 +02:00
David PHAM-VAN
4265177f9f
Fix Memory Leaks in RdpDR
2016-09-15 10:44:15 -07:00
Marc-André Moreau
915b9a15b1
Merge branch 'master' of github.com:FreeRDP/FreeRDP
...
Conflicts:
winpr/libwinpr/bcrypt/CMakeLists.txt
2016-05-11 11:05:17 -04:00
Marc-André Moreau
4d629a7999
freerdp: UWP porting
2016-03-29 16:03:15 -04:00
Armin Novak
2dbc1a0b87
Reverted WTS API changes.
2016-03-14 13:19:08 +01:00
Armin Novak
36cbf1b583
Fixed error handling for channel load failures.
2016-03-14 13:13:43 +01:00
David PHAM-VAN
40504c5460
Fix Uninitialized Variable
2016-03-02 10:04:24 -08:00
David PHAM-VAN
f4eb278935
Mount only removable devices and network drives in Windows; Adds consistency with Linux and Mac
2016-03-02 10:01:51 -08:00
David PHAM-VAN
31d9599d09
Move first_hotplug call to parent thread to avoid parallel access to devman dictionary
2016-03-02 10:01:51 -08:00
David PHAM-VAN
2e1e6a4ff0
Add hotplug support for MacOS
2016-03-02 10:01:51 -08:00
Armin Novak
511f9e810a
Use ERROR_INVALID_DATA for short buffers.
2016-02-03 11:04:35 +01:00
Armin Novak
d847993a0c
Using Stream_ReminingLength for read checks.
2016-01-28 12:30:10 +01:00
Armin Novak
6f50589c05
Cleared up error code usage.
2016-01-28 12:05:14 +01:00
Armin Novak
57f1e26f36
Checking capability read return.
...
Updated copyright headers.
2016-01-28 11:14:29 +01:00
Armin Novak
e08ca73ddc
Improved error checks.
2016-01-27 19:26:52 +01:00
Armin Novak
deffd0d781
Fixed argument checks for drive channel.
2016-01-24 15:21:06 +01:00
Armin Novak
aa90673008
Fixed memory leak on cleanup.
2016-01-15 09:33:21 +01:00
Armin Novak
61e7f993aa
Fixed possible memory leak.
2015-09-01 12:34:40 +02:00
Armin Novak
c7238fb9d9
Fixed uninitialized values.
2015-09-01 12:26:33 +02:00
Armin Novak
276685263d
Fixed cleanup code.
2015-08-28 11:46:24 +02:00
Armin Novak
5e360ddcb1
Fixed memory leak.
2015-08-28 11:22:21 +02:00
Armin Novak
198b70db0e
Fixed memory leak.
2015-08-28 11:05:44 +02:00
Martin Haimberger
52405a3e79
Remove WIN32ERROR type
...
All return values are UINT now.
2015-08-27 05:38:20 -07:00
Martin Haimberger
414d4b8f8e
fixed wrong returntype under windows
2015-07-30 07:50:10 -07:00
Martin Haimberger
65fd259610
misc fixes:
...
fixed all bugs from the review
checking all WaitFor*Object/s calls
2015-07-30 06:49:21 -07:00
Bernhard Miklautz
9fb6705380
rdpdr/printer: ignore unhanded packetID
...
Ignore packetIDs PRN_CACHE_DATA and PRN_USING_XPS instead of returning
an error.
2015-07-28 14:05:57 +02:00
Martin Haimberger
b8c110d19b
introduced channel error reporting system
...
The rdpContext gets an event which will
get set if an error occoured in a channel.
If a thread or a void callback has to report an
error it will get signaled by this system.
2015-07-15 00:50:35 -07:00
Martin Haimberger
6e4e1c2773
Merge remote-tracking branch 'upstream/master' into mh-stream-fix
...
Conflicts:
client/Windows/wf_cliprdr.c
2015-06-18 03:06:40 -07:00
Martin Haimberger
0bf222ec50
hardend rdpdr channel
2015-06-18 03:04:32 -07:00
David FORT
12f873f1f9
Fixed MessageQueue and callers
2015-05-29 14:24:14 +02:00
David FORT
f8d6eb226c
Fixed last VirtualChannelEntry
2015-05-19 13:56:48 +02:00
Hardening
f8120919af
Add checks for some XXX_New and XXX_Add functions
...
Based on PR #2616
2015-05-18 11:28:00 +02:00
Norbert Federa
1eff1a345e
free can handle NULL perfectly fine
2015-05-11 09:07:39 +02:00
Armin Novak
ac81b9ddf5
Fixed variable initialisation and cleanup.
2015-01-20 12:31:26 +01:00
Armin Novak
4171589647
Added CHANNEL_EVENT_DISCONNECTED handling.
...
Additional error checks and logging.
2015-01-20 11:55:22 +01:00
Marc-André Moreau
d5b3f9cbd4
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2015-01-08 14:22:05 -05:00
Bernhard Miklautz
b485bb2067
rdpdr: use host name for redirected drives if set
...
When a client set the host name, redirected drives would still be shown
as coming from the computer name. For example if the computer the client
run on is called "foo" and the client set the /host-name to "bar" any
redirected drive is shown as "driveX on foo".
Now the host name is used for drives when set.
2014-12-30 13:34:11 +01:00
Marc-André Moreau
51554ff16c
channels: patch rdpdr/smartcard valgrind leaks, fix hang on disconnect
2014-12-28 14:56:13 -05:00
Marc-André Moreau
b552aa9363
libfreerdp-core: add support for multiple redirection target addresses
2014-12-27 18:53:27 -05:00
Marc-André Moreau
27a8e50e60
channels: fix drdynvc, patch memory leaks
2014-12-27 15:20:29 -05:00
Marc-André Moreau
6c2ebb2b58
channels: redirection valgrind fixes
2014-12-27 13:50:50 -05:00
Marc-André Moreau
fdd2dc7601
freerdp: patch valgrind leaks, cleanup
2014-12-03 14:17:27 -05:00
Armin Novak
b1e9ffb655
Using wlog for channel logging now.
...
Fixed compiler warnings and broken callback in urbdrc.
2014-09-15 08:48:46 +02:00
Armin Novak
66b8905ac6
Using special log defines for channels now.
2014-08-11 09:12:01 +02:00
Armin Novak
b252009d36
Replaced custom logging mechanism with WLog wrapper.
2014-08-07 16:51:49 +02:00
erbth
1a01949b68
drive hotpluging: register mounted drives already before first hotplug
2014-06-11 21:47:14 +02:00
Marc-André Moreau
ee282a931b
freerdp: fix build warnings on Windows
2014-05-10 09:50:36 -04:00
Marc-André Moreau
6505864bcd
channels/rdpdr: replace usage of strndup
2014-05-08 23:45:40 -04:00
Marc-André Moreau
d53a9415ae
channels/smartcard: add sequence id to IRPs for easier cancellation
2014-05-06 18:19:54 -04:00
Marc-André Moreau
2aa248853a
channels/smartcard: cancel outstanding IRPs on re-initialization
2014-04-05 17:15:17 -04:00
Marc-André Moreau
70b490d05c
channels/smartcard: add outstanding irp list
2014-04-05 16:57:31 -04:00
Marc-André Moreau
374b5e4dcc
channels/rdpdr: fix potential robustness issues related to hotplug support
2014-03-25 16:37:47 -04:00
Zhang Zhaolong
69296ce3bd
wfreerdp: build fix.
2014-03-04 13:54:25 +08:00
Marc-André Moreau
6695873394
libwinpr-wtsapi: fix multiple inconsistencies with original wtsapi headers
2014-02-28 14:49:57 -05:00
Marc-André Moreau
419e2936be
Merge branch 'master' of github.com:awakecoding/FreeRDP into channels
2014-02-27 15:09:06 -05:00
Marc-André Moreau
951368a1ce
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2014-02-27 13:58:29 -05:00
Zhang Zhaolong
f924190d8b
drive: linux: add hotplug support.
2014-02-20 17:42:02 +08:00
Marc-André Moreau
82b922a70d
channels: rename custom CHANNEL_ENTRY_POINTS_EX to CHANNEL_ENTRY_POINTS_FREERDP to fix conflict
2014-02-16 17:38:59 -05:00
Marc-André Moreau
b833073f57
libfreerdp-core: make client virtual channel API prototypes converge towards original API
2014-02-16 17:27:36 -05:00
Zhang Zhaolong
e82d2f9e14
drive: win: fix use drive name(path) to find out the device plugged out.
2014-02-14 16:35:44 +08:00
Zhang Zhaolong
7205e348eb
drive: win: add hotplug support.
2014-02-14 15:09:55 +08:00
Marc-André Moreau
5ff847a6e6
wfreerdp: fix multiple warnings
2014-02-10 01:06:11 -05:00
Marc-André Moreau
5406ebd5d8
channels/drive: refactoring
2013-11-03 19:10:33 -05:00
Marc-André Moreau
7dbe40bba8
channels/rdpdr: cleanup rdpdrPlugin struct
2013-10-17 17:39:48 -04:00
Marc-André Moreau
490f18a7aa
channels/rdpdr: don't use deprecated LIST util, use ListDictionary for faster lookups
2013-10-17 16:30:36 -04:00
Marc-André Moreau
05d9fbfe2a
channels/rdpdr: remove dependency on svc_plugin
2013-10-17 15:42:51 -04:00
Marc-André Moreau
49a2334554
channels/rdpdr: reduce dependency on svc_plugin
2013-10-17 15:20:04 -04:00
Marc-André Moreau
92f7d64c17
channels/rdpdr: start refactoring to get rid of old channel utils
2013-10-17 14:19:33 -04:00
Marc-André Moreau
fdf3ddcf9e
freerdp: purge deprecated stream utils
2013-05-08 17:48:30 -04:00
Marc-André Moreau
fd230443c5
freerdp: purge old stream utils
2013-05-08 16:27:21 -04:00
Marc-André Moreau
5b92413843
freerdp: purge deprecated stream utils
2013-05-08 16:09:16 -04:00
Marc-André Moreau
b4cac74136
xfreerdp-server: fix RemoteFX encoding
2013-05-01 18:15:55 -04:00
Marc-André Moreau
51715636a5
freerdp: remove some deprecated stream utils
2013-04-29 22:35:15 -04:00
Marc-André Moreau
d187becc28
freerdp: merge with master
2013-03-28 21:20:36 -04:00
Marc-André Moreau
3417a3aab5
freerdp: merge RDP_EVENT type with wMessage
2013-03-28 21:13:56 -04:00
Hardening
7701c9d934
Replace printf(...) by fprintf(stderr, ...)
2013-03-28 23:06:34 +01:00
Marc-André Moreau
8c8a82c31f
libfreerdp-utils: purge old STREAM utils
2013-03-21 16:45:25 -04:00
Marc-André Moreau
a8201b0d1b
libwinpr-utils: combine old and new stream utils
2013-03-21 15:19:33 -04:00
rdp.effort
e53e8e524d
Initialize lpWideCharStr parameter when using ConvertToUnicode
...
This patch ensure that lpWideCharStr is initialized by callers of
ConvertToUnicode
2013-01-10 21:30:32 +01:00
Marc-André Moreau
d19e2042c3
libfreerdp-utils: remove deprecrated unicode utils in favor of WinPR
2012-12-17 10:20:25 -05:00
Marc-André Moreau
8a32de3801
libfreerdp: purged source tree from deprecated memory utils
2012-11-21 21:22:06 -05:00
Marc-André Moreau
091f9f3034
client/common: automatically register fake rdpsnd channel when device redirection is in use
2012-11-21 09:30:16 -05:00
Marc-André Moreau
e0b37aa97e
channels: load device addins using new command-line api
2012-11-08 19:01:52 -05:00
Marc-André Moreau
6882b1fa9d
mfreerdp-server: initial commit
2012-10-31 23:04:31 -04:00
Marc-André Moreau
9d064171a7
freerdp: get rid of old types
2012-10-09 03:26:39 -04:00
Marc-André Moreau
1bf8a45519
freerdp: change uint8, sint8, uint16, sint16 to BYTE, INT8, UINT16, INT16
2012-10-09 03:01:37 -04:00
Marc-André Moreau
1ed644786c
freerdp: change boolean type to BOOL type
2012-10-09 02:38:39 -04:00
Marc-André Moreau
5612bc43f8
freerdp: change true/false to TRUE/FALSE
2012-10-09 02:31:28 -04:00
Marc-André Moreau
9909a12af5
libfreerdp-utils: get rid of xmalloc, xrealloc and xfree
2012-10-08 23:21:26 -04:00
Marc-André Moreau
ac7e1a3aea
channels: make rail, drdynvc, cliprdr and rdpsnd built-in channels
2012-10-08 22:48:17 -04:00
Marc-André Moreau
e95b5b5a24
channels: move rdpdr header
2012-10-08 21:00:07 -04:00
Marc-André Moreau
11aa251fca
channels: modify plugins to become optionally built-in
2012-10-08 20:26:11 -04:00
Marc-André Moreau
6431621282
channels: added generation of static channel entry table
2012-10-07 22:53:24 -04:00
Marc-André Moreau
3d98273185
channels: fix export of symbols on Windows
2012-10-07 10:21:54 -04:00
Marc-André Moreau
77023ec1dd
channels/rdpdr: reduce dependency on list utils in favor or lightweight interlocked singly-list lists
2012-10-02 21:52:27 -04:00
Marc-André Moreau
d0ac31b2c1
libfreerdp-utils: get rid of freerdp_uniconv_out
2012-09-23 19:49:13 -04:00
Marc-André Moreau
44f18159c4
libfreerdp-utils: get rid of UNICONV unicode conversion context
2012-09-23 18:41:07 -04:00
Marc-André Moreau
a11a69c70f
channels/rdpdr/disk: replace thread utils by WinPR thread API
2012-09-23 13:54:14 -04:00
Marc-André Moreau
3d65cb1c27
channels: moved client-side implementations in client subdirectories
2012-09-22 17:46:23 -04:00