Armin Novak
4d03d7c0bf
Freerdp remove #ifdef HAVE_CONFIG_H
2022-03-03 11:26:48 +01:00
Armin Novak
b2ad47a809
Reorganized FreeRDP headers
2022-03-03 11:26:48 +01:00
Armin Novak
fd027d1bf0
Removed BUILTIN_CHANNELS
...
Building client channels out of tree does not work reliable as the
dependencies can not be easily split. (exceptions may be simple ones
as echo channel)
It does complicate the build system and code though, so remove this
for maintainability reasons.
2022-02-23 10:43:46 +01:00
akallabeth
8cc6582044
Unify struct definitions ( #7633 )
...
* Unified enum/struct definitions, fixed include issues
* Fixed mac compilation issues
* Added missing include
* Fixed windows server build warnings
* Fixed VS2010 build issue
* Removed unnecessary library linking
* Fixed ThreadPool WinXP compatibility
* Fixed pr review remarks
2022-02-14 14:59:22 +01:00
Armin Novak
7d80c74e97
Cleaned up RDPDR channel interhitance
...
* All channels inheriting from RDPDR_DRIVE base struct
* Add functions to create/free a new device of a type
* Fixed settings array resize code, prevent 0 sizes
2021-10-18 09:21:02 +02:00
Armin Novak
8ef57bf296
Replaced CMAKE_[SOURCE|BINARY]_DIR with PROJECT_[SOURCE|BINARY]_DIR
...
Thanks @Pollux42 for the hint in #7096
2021-06-22 08:54:18 +02:00
Biswapriyo Nath
173ab04b59
Use same data types as calling function prototypes.
2021-05-31 13:38:19 +02:00
akallabeth
6b485b146a
Fixed oob read in irp_write and similar
2020-05-06 13:31:57 +02:00
David Fort
5e6775ce95
winpr: fix anonymous enum members and menbers without a size
2019-11-25 13:39:31 +01:00
David Fort
d7e510016a
Merge pull request #5736 from akallabeth/makecert_cleanups
...
Cleaned up code for makecert.
2019-11-20 23:26:31 +01:00
Armin Novak
a5bebd3c65
Fixed scanbuild warnings.
2019-11-20 09:17:08 +01:00
Armin Novak
f9b3f270fe
Fixed path NULL checks.
2019-11-19 10:48:25 +01:00
Armin Novak
4c5bfcc235
Fixed #5727 : drive_process_irp_create set path to NULL if not provided.
2019-11-18 15:25:18 +01:00
Armin Novak
57a57a917a
Fixed #5727 : Remove forbidden symbols from drive name
2019-11-18 14:31:46 +01:00
Armin Novak
72ca88f49c
Reformatted to new style
2019-11-07 10:53:54 +01:00
Armin Novak
64f64cd035
devman_load_device_service device argument can be const.
2019-10-24 15:04:48 +02:00
Martin Fleisz
20c585bd18
rdpdr: Fix error code reporting for create PDUs
2019-10-01 14:34:36 +02:00
Armin Novak
fdf1715213
Unified DriveStoreRedirect parsing.
2019-08-23 12:06:21 +02:00
Armin Novak
485061e4d0
Fix #5317 : Change file attributes before modifying file time.
2019-03-29 15:45:52 +01:00
Armin Novak
4ba73e0c73
Fixed warnings found by compiler and static analysis.
2019-01-24 11:53:52 +01:00
Armin Novak
805741bdf6
Fixed #5185 broken file size initialization.
2019-01-14 14:54:33 +01:00
Armin Novak
fdf9ca3273
Fixed #5113 : The timestamps for FileFullDirectoryInformation were inverted.
2018-12-07 10:59:52 +01:00
Norbert Federa
0572572eb9
fix issue with fnObjectFree and related casts
...
- remove unnecessary/dangerous OBJECT_xxx function-style casts
- fix -Wstrict-prototypes issue with OBJECT_NEW_FN definition
2018-10-19 11:30:01 +02:00
David Fort
ba69925b8d
Merge pull request #4501 from akallabeth/drive_file_size_fix
...
Removed xrdp workarounds.
2018-09-24 16:00:27 +02:00
Martin Fleisz
8248dcb3bb
Merge pull request #4816 from akallabeth/drive_cmd_fix
...
Fix #4680 : Return proper directory name.
2018-08-24 09:45:26 +02:00
Armin Novak
ab18f8f222
Fix #4680 : Return proper directory name.
2018-08-23 10:04:26 +02:00
Ondrej Holy
4b8f2d5137
channels/drive: Fix leak found by covscan
...
leaked_storage: Variable "outStr" going out of scope leaks the storage it points to.
2018-08-22 13:35:43 +02:00
Armin Novak
dbd630a38c
drive_file_query_information: Use GetFileAttributesExW
2018-08-13 13:40:59 +02:00
Armin Novak
adc0882f8d
Removed obsolete winodws path hack.
2018-07-30 13:16:45 +02:00
Armin Novak
93fa8eb0d2
Fixed windows automount drive arguments.
2018-07-30 12:58:15 +02:00
Armin Novak
e8393a22e2
Remember if drive was added by automout.
2018-07-30 12:31:11 +02:00
Ilya Shipitsin
14c15c680d
resolve several possible null pointer dereference
...
issue detected by cppcheck
[channels/drive/client/drive_main.c:454] -> [channels/drive/client/drive_main.c:443]: (warning) Either the condition '!irp' is redundant or there is possible null pointer dereference: irp.
[client/X11/xf_window.c:582] -> [client/X11/xf_window.c:580]: (warning) Either the condition '!xfc' is redundant or there is possible null pointer dereference: xfc.
[winpr/libwinpr/path/test/TestPathShell.c:40] -> [winpr/libwinpr/path/test/TestPathShell.c:43]: (warning) Either the condition '!path' is redundant or there is possible null pointer dereference: path.
[winpr/libwinpr/path/test/TestPathShell.c:49] -> [winpr/libwinpr/path/test/TestPathShell.c:52]: (warning) Either the condition '!path' is redundant or there is possible null pointer dereference: path.
2018-03-24 17:46:39 +05:00
Armin Novak
d8e8bf8476
Removed xrdp workarounds.
...
These workarounds limit functionality with other server implementations
and should be fixed in xrdp.
2018-03-20 11:31:53 +01:00
Armin Novak
2517755d25
Fixed thread function return and parameters.
2018-03-07 14:36:55 +01:00
Martin Fleisz
9b4de7903f
drive: Fix possible NULL ptr access
2018-03-06 16:34:36 +01:00
David Fort
a132922376
Add checks for DR channel
2017-10-04 10:30:47 +02:00
David Fort
b624ecbfce
Fix for #4161
...
The checks were wrong, fix them.
2017-10-02 20:57:27 +02:00
Bernhard Miklautz
bbd11eef1d
Merge pull request #4045 from akallabeth/drive_fixes_overlayfs
...
Drive fixes overlayfs
2017-09-22 17:22:00 +02:00
Armin Novak
32de218c3f
Fixed file seek.
2017-08-08 10:52:11 +02:00
Armin Novak
d1ebc39b07
Fixed file errno mapping.
2017-07-24 15:05:48 +02:00
Armin Novak
9a2c9c47d7
Fixed buffer read.
2017-07-24 11:32:54 +02:00
Armin Novak
6a06c8d991
Additional error checks for drive channel.
2017-07-24 11:31:48 +02:00
Armin Novak
478ca97a16
Fixed resource cleanup.
2017-07-20 09:35:41 +02:00
Armin Novak
8b9e3fa51e
Fixed use of reserved keywords for include guards.
2017-07-20 09:35:41 +02:00
Norbert Federa
36b8f54c5e
Fixed a few compiler warnings
2017-07-10 17:52:05 +02:00
weizhenwei
bd94dcc6d5
remove duplicate code when freeing drive
2017-06-23 09:28:42 +08:00
weizhenwei
3b52a60d31
remove useless NULL pointer check before free
2017-06-23 09:21:16 +08:00
weizhenwei
61b24bf0b3
add NULL pointer check and set freed pointers to NULL afterward
2017-06-22 17:53:51 +08:00
weizhenwei
a2ecf403b2
fix memory leak at drive_register_drive_path() and drive_free()
2017-06-21 15:26:28 +08:00
Armin Novak
98736c9d4d
Fix #3995 : File size information
2017-06-09 13:02:50 +02:00