FreeRDP/winpr/libwinpr/comm/test
Norbert Federa ef1fd12b15 Fix unchecked CreateEvent calls and misc fixes
1)
Added missing checks for CreateEvent which also required the
following related changes:

- changed freerdp_context_new API to BOOL
- changed freerdp_peer_context_new API to BOOL
- changed pRdpClientNew callback to BOOL
- changed pContextNew callback to BOOL
- changed psPeerAccepted callback to BOOL
- changed psPeerContextNew callback to BOOL

2)
Fixed lots of missing alloc and error checks in the
changed code's neighbourhood.

3)
Check freerdp_client_codecs_prepare result to avoid segfaults
caused by using non-initialized codecs.

4)
Fixed deadlocks in x11 caused by missing xf_unlock_x11() calls
in some error handlers

5)
Some fixes in thread pool:
- DEFAULT_POOL assignment did not match TP_POOL definition
- don't free the pool pointer if it points to the static DEFAULT_POOL
- added error handling and cleanup in InitializeThreadpool
2015-04-29 18:18:39 +02:00
..
.gitignore libwinpr-comm: initial stubs 2014-04-02 15:51:28 -04:00
CMakeLists.txt comm/tests: set label comm 2015-04-08 11:34:37 +02:00
TestCommConfig.c Fixed warnings for comm tests. 2014-08-11 09:17:56 +02:00
TestCommDevice.c winpr-comm: fixed QueryCommDevice() when used with some wide characters 2014-07-04 12:24:41 +02:00
TestCommMonitor.c Fix unchecked CreateEvent calls and misc fixes 2015-04-29 18:18:39 +02:00
TestControlSettings.c Fixed warnings for comm tests. 2014-08-11 09:17:56 +02:00
TestGetCommState.c winpr: add checks for *alloc 2015-04-08 11:34:37 +02:00
TestHandflow.c Fixed warnings for comm tests. 2014-08-11 09:17:56 +02:00
TestSerialChars.c Fixed warnings for comm tests. 2014-08-11 09:17:56 +02:00
TestSetCommState.c winpr-comm: fixed set_baud_rate()/get_baud_rate() functions in comm_serial_sys.c (the issue came from a wrong extrapolation of the COMMPROP's MaxBaud field) 2014-09-16 11:21:01 +02:00
TestTimeouts.c Fixed warnings for comm tests. 2014-08-11 09:17:56 +02:00