Armin Novak
81526b19a2
[string,format] fix format strings for debug messages
2026-03-03 14:07:49 +01:00
Armin Novak
e6fca2c021
[winpr,stream] Fix Stream_SetPosition return checks
2026-03-02 11:37:20 +01:00
Armin Novak
92ab55c5e1
[winpr,stream] Add Stream_ResetPosition
...
A helper function that does not require return checks, in contrast to
Stream_SetPosition, which might fail.
2026-03-01 06:11:59 +01:00
Armin Novak
2c0c55dc46
[c23,channels] replace NULL with nullptr
2026-02-26 13:43:54 +01:00
Armin Novak
e58819830a
[c23] simplify boolean checks
2026-02-26 11:51:05 +01:00
Armin Novak
48267edf2f
[winpr] add WINPR_C_ARRAY_INIT
...
since C23 allows c++ style initializing replace direct use with this
macro
2026-02-25 19:23:08 +01:00
akallabeth
d606a734c7
Merge pull request #12325 from akallabeth/attr-nodiscard-channels
...
Attr nodiscard channels
2026-02-25 10:12:42 +01:00
Armin Novak
3fcc287b16
[warnings] initialize all va_list
2026-02-25 07:41:39 +01:00
Armin Novak
f14096d468
[channels] mark functions [[nodiscard]]
2026-02-24 11:31:57 +01:00
Armin Novak
df64d00a97
[warnings,api] fix -Wunused-result
...
With marking publid API [[nodiscard]] some problematic error checks in
the core library were uncovered. This commit addresses these
shortcomings.
2026-02-17 11:07:08 +01:00
Armin Novak
0c87a5dd65
[channels,rdpei] add RDPINPUT_CONTACT_FLAG_UP
...
When iterating over the list of contacts add a RDPINPUT_CONTACT_FLAG_UP
contact to the list of events to send.
2026-01-28 10:16:58 +01:00
akallabeth
ec4c4ee5a3
[channels,rdpei] refactor variable names
2026-01-26 11:09:53 +01:00
akallabeth
af784d01c6
[channels,rdpei] lock full update, not only parts
2026-01-23 16:37:39 +01:00
akallabeth
56101764fa
[c,printf] fix wlog format string to match arguments
2026-01-16 11:40:04 +01:00
akallabeth
435100fea0
[channels,rdpei] properly clean up server channel
...
Fix a leak in rdpei_server_context_free and some checks in
rdpei_server_context_new
2026-01-09 13:12:44 +01:00
Kim Youngseok
45e8705fd7
fix: send touch down and last update event
2025-10-24 14:45:39 +09:00
Pascal Nowack
a16cb1da63
rdpei/server: Fix incorrect PDU length read
...
The PDU length is a 32-bit unsigned integer and not a 16-bit one.
2025-04-19 20:30:24 +02:00
Pascal Nowack
eb3fdc3a22
rdpei/server: Add optional threaded handling of messages
2025-04-14 14:40:30 +02:00
Mark Nauwelaerts
829b3b86ac
[rdpei/server] adjust virtual channel open
...
... as WTS_CURRENT_SESSION is not accepted by WTSVirtualChannelOpenEx
2025-04-09 21:20:33 +02:00
Mark Nauwelaerts
0be17f3fb7
[rdpei/server] fix error message typo
2025-04-09 21:07:01 +02:00
akallabeth
1fe0ca41e1
[warnings] fix missing integer casts
2025-03-11 13:20:19 +01:00
akallabeth
e5c1e9a320
[channels,rdpei] add log message for unknown protocol versions
2025-03-04 12:42:45 +01:00
akallabeth
671c6d21ba
[channels,rdpei] fix sign conversion
2025-01-07 21:28:18 +01:00
akallabeth
e90b4d5e98
[channels,rdpei] fix invalid mask
2024-12-30 08:02:43 +01:00
akallabeth
be3ba1c425
[warnings,channels] fix integer casts
2024-12-25 13:29:07 +01:00
akallabeth
ac9cf26bce
[cmake] fix define_channel_options
...
* fix usage of default value
* fix defaults of channels
* unify to single CMake function define_channel_options
2024-12-17 16:29:32 +01:00
akallabeth
83f2f21ad3
[warnigns] fix lots of bugprone warnings
...
* update-settings-tests: properly cast types in getter/setter
* wtypes: fix PHANDLE definition
* wStream: fix INT64 write function warnings
* Simplify HANDLE copy in channels, just assign after proper cast
2024-12-06 09:15:48 +01:00
akallabeth
faae38120c
[cmake,format] reformat all cmake files
2024-11-27 20:41:48 +01:00
akallabeth
78acedb40e
[warnigns] fix Wshorten-64-to-32
2024-11-11 10:22:37 +01:00
akallabeth
911ed13efc
[channels,rdpei] fix integer narrow
2024-10-03 18:59:05 +02:00
akallabeth
490ca0453b
[winpr,stream] use Stream_BufferAs instead of casting
2024-10-01 10:34:42 +02:00
akallabeth
3e7a7fdcad
[channels,rdpei] implement channel without thread
...
* implement channel without thread (compile time option)
* use dynamic logger
* add some missing parameter and stream checks
2024-09-27 09:32:22 +02:00
akallabeth
586f40631f
[warnings] fix shorten-64-to-32
2024-09-17 16:13:48 +02:00
akallabeth
bb242b9a89
[return checks] fix use of WaitForSingleObject
2024-09-16 08:22:37 +02:00
akallabeth
965d231e49
[return checks] fix use of CloseHandle
2024-09-16 08:22:31 +02:00
akallabeth
94020c183c
[return checks] fix use of ResetEvent
2024-09-16 06:48:09 +02:00
akallabeth
7d67b8e204
[return checks] fix use of SetEvent
2024-09-16 06:47:58 +02:00
akallabeth
8b6091a007
[winpr,wtsapi] improve API usage
...
* Mark WTSVirtualChannelOpen and WTSVirtualChannelOpenEx with
WINPR_ATTR_MALLOC to enforce compiler checks for resource cleanup
* Fix unused result warnings, use the result or cast to (void) where not
requierd
2024-09-14 21:29:31 +02:00
akallabeth
fe6d861a5c
[channels] fix VCAPITYPE for all channel entry points
2024-09-03 17:26:58 +02:00
akallabeth
bd637c6cd1
[warnings] fix various clang-tidy warnings
2024-08-29 17:13:50 +02:00
akallabeth
47e40dd7a5
[warnings] fix clang-tidy issues in channels
2024-08-29 15:34:25 +02:00
akallabeth
2831d2f5ec
[cmake] fix add_channel_client and add_channel_server
...
only add the channels if they are activated (e.g. both,
CHANNEL_<NAME> and CHANNEL_<NAME>_CLIENT or CHANNEL_<NAME>_SERVER are
defined)
2024-06-11 11:39:25 +02:00
akallabeth
d7ebec5a65
[tidy] move loop variable declaration to loop
2024-02-22 12:31:50 +01:00
akallabeth
0ba995655d
[clang-tidy] cppcoreguidelines-init-variables
2024-02-15 11:49:16 +01:00
akallabeth
ba8cf8cf21
[build] fix Wmismatched-deallocator warnings
...
With custom malloc function attributes the fail path in the _New
functions produces warnings due to allocator mismatches. Silence them.
2024-02-05 08:16:55 +01:00
akallabeth
ceb7bd1d41
[warnings] fixed clang build warnings
2023-11-24 18:19:03 +01:00
ichaoX
a6e9cfa6d9
[channels,rdpei] fix pen contact
2023-09-13 15:57:59 +02:00
akallabeth
bb5345c60e
[freerdp,api] add FREERDP_ENTRY_POINT
...
C requires prototypes or compilers will complain about them missing. Our
library entry points do not have such, therefore add the macro
FREERDP_ENTRY_POINT which declares the function prototype automatically
before the function.
2023-08-25 14:36:05 +02:00
Martin Fleisz
622a2a8df0
misc: More int to BOOL conversion fixes
...
This is a follow up to #9129 .
This PR fixes some problematic `int` to `BOOL` conversions that might
cause overflows when checking for bit flags.
2023-07-04 09:45:20 +02:00
Armin Novak
535faeb879
[channels,rdpei] simplify new contact detection
2023-06-26 11:22:32 +02:00