Commit Graph

20244 Commits

Author SHA1 Message Date
akallabeth
81e06db035 [cmake,compiler] fix clang detection
clang is branded with various names, regex match them all
2024-12-09 07:31:34 +01:00
akallabeth
285a6961fa [client,common] deactivate -fsanitize with helper
when compiling manpage generation helper deactivate -fsanitize options
to avoid link/runtime issues.
2024-12-09 07:31:31 +01:00
akallabeth
0e37e50454 Merge pull request #10932 from akallabeth/test-fix
[winpr,file] fix memory leak in test
2024-12-09 06:30:14 +01:00
akallabeth
9ec6b37f1d [winpr,file] fix memory leak in test 2024-12-09 06:22:46 +01:00
akallabeth
51c3e6a878 Merge pull request #10931 from akallabeth/manpage-fix
[client,common] fix manpage generation
2024-12-08 21:40:21 +01:00
akallabeth
d780a0705c [client,SDL] fix resource template file 2024-12-08 21:39:28 +01:00
akallabeth
ac27fdaada [client,common] fix manpage generation
strip all compile/link flags for the manpage helper tool. This avoids
linking/runtime issues with e.g. ASAN and other such tools used by
nightly builds and others.
2024-12-08 14:15:08 +01:00
akallabeth
ecfafcd89e Merge pull request #10929 from Biswa96/cast-argument-SHGetKnownFolderPath
winpr: Fix compiler error with SHGetKnownFolderPath argument
2024-12-08 09:08:22 +01:00
Biswapriyo Nath
19b2a930bd winpr: Fix compiler error with SHGetKnownFolderPath argument
This commit fixes the following gcc compiler error.

FreeRDP/winpr/libwinpr/path/shell.c:226:67: error: passing argument 3 of
'SHGetKnownFolderPath' makes pointer from integer without a cast [-Wint-conversion]
  226 |         if (FAILED(SHGetKnownFolderPath(&FOLDERID_ProgramData, 0, -1, &wpath)))
      |                                                                   ^~
      |                                                                   |
      |                                                                   int
2024-12-07 17:51:43 +00:00
akallabeth
cc6c3dd98b Merge pull request #10927 from Biswa96/typo-rdpSettings
shadow: Fix typo with rdpSettings data type
2024-12-07 17:50:07 +01:00
akallabeth
344841714c Merge pull request #10844 from akallabeth/cmake-mulitconfig
Cmake multiconfig
2024-12-07 17:43:05 +01:00
Biswapriyo Nath
cad4f8ebd7 shadow: Fix typo with rdpSettings data type
This commit fixes the following compiler error.

FreeRDP/server/shadow/Win/win_wds.c:767:9: error: unknown type name 'rdpSetting';
did you mean 'rdpSettings'?
  767 |         rdpSetting* settings = subsystem->shw->settings;
      |         ^~~~~~~~~~
      |         rdpSettings

The typo was introduced in ba41d5e532 commit.
2024-12-06 18:25:57 +00:00
akallabeth
1186be1a3c Merge pull request #10924 from akallabeth/warn-silence-now
[client,x11] fix type of allocated memory
2024-12-06 12:27:30 +01:00
akallabeth
15b2ee55b7 [client,x11] fix type of allocated memory 2024-12-06 11:27:17 +01:00
akallabeth
7cb8f7c47f Merge pull request #10892 from akallabeth/bugprone-multilevel
[warnings] fix lots of bugprone warnings
2024-12-06 09:31:48 +01:00
Armin Novak
7643ecbf25 [winpr,debug] WINPR_ATTR_MALLOC backtrace functions 2024-12-06 09:15:54 +01:00
Armin Novak
f278e8730d [winpr,clipboard] fix Wshorten-64-to-32 2024-12-06 09:15:51 +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
40cbf65dff [cmdline] fix drive parsing 2024-12-06 08:38:18 +01:00
akallabeth
89bda0f452 [client,sdl] add warning for SDL2 lacking clipboard 2024-12-06 08:38:10 +01:00
akallabeth
48ada610e1 Merge pull request #10923 from akallabeth/clip-crash-fix
[client,x11] fix clipboard incremental data update
2024-12-05 16:13:46 +01:00
akallabeth
6378b3ae72 [client,x11] clean up clipboard reading
prevent possible out of bound reads
2024-12-05 13:28:21 +01:00
Norbert Federa
faf259d9c1 Merge pull request #10922 from akallabeth/rail-fix-modal
[client,x11] fix some rail z-ordering issues
2024-12-05 11:44:19 +01:00
akallabeth
141dc8b830 [client,x11] fix some rail z-ordering issues
- Always call xf_XSetTransientForHint unless style has WS_CHILD set.
  xf_XSetTransientForHint in turn checks if a parent is set, which is
  basically the only hint we have for managing/forcing the z-order.
  Everything else is irrelevant in that regard (except WS_EX_TOPMOST)
  See https://learn.microsoft.com/en-us/windows/win32/winmsg/window-features#owned-windows
- Make _NET_WM_STATE_ABOVE only dependent on WS_EX_TOPMOST
2024-12-05 11:22:23 +01:00
akallabeth
180a9d7d72 [cmake,flags] print all configuration flags
Since we do not know wich configuration will be build with
multiconfiguration generators print out all C_FLAGS_XXX and
CXX_FLAGS_XXX variables
2024-12-05 09:36:26 +01:00
akallabeth
ba8fd2ada5 [cmake] force configuration options
limit multiconfiguration options to supported types
2024-12-05 09:36:23 +01:00
akallabeth
9ac770b70e [cmake] use configuration generator expressions 2024-12-05 09:19:46 +01:00
akallabeth
4c6f8f9029 Merge pull request #10919 from KangLin/master
[Windows, clipboard] fix server don't support format to application exit.
2024-12-05 08:43:38 +01:00
Kang Lin
8206610852 [Windows, clipboard] fix server don't support format to applictioin exit.
See: https://github.com/KangLin/RabbitRemoteControl/issues/31
2024-12-05 12:48:28 +08:00
David Fort
d38bf5a5e1 Merge pull request #10915 from akallabeth/reconnect-fix
[core,freerdp] fix automatic reconnect after auth
2024-12-04 22:35:21 +01:00
akallabeth
54a1177965 Merge pull request #10916 from akallabeth/manpage-no-exit
[common,man] eliminate exit() calls
2024-12-04 16:55:31 +01:00
Armin Novak
e12f3fd15a [common,man] eliminate exit() calls 2024-12-04 16:22:28 +01:00
Armin Novak
5a7621bfa3 [core,freerdp] fix automatic reconnect after auth
In freerdp_connect do an automatic reconnect if we failed with a
FREERDP_ERROR_CONNECT_TRANSPORT_FAILED
This way we can prevent connection disconnects if the remote was
disconnected due to timeout (e.g. Auth-Dialog was open for a long time)
2024-12-04 15:49:47 +01:00
Martin Fleisz
af4e3ede0c Merge pull request #10914 from akallabeth/winpr-hash
[winpr,tools] remove exit() from hash-cli tool
2024-12-04 14:36:56 +01:00
Armin Novak
f9b8303b4e [winpr,tools] remove exit() from hash-cli tool 2024-12-04 14:20:49 +01:00
akallabeth
8b05f8bee5 Merge pull request #10913 from hardening/freerdp_settings_set_pointer_len_
Cleanup freerdp_settings_set_pointer_len_
2024-12-04 14:07:00 +01:00
David Fort
f0f830f3e9 Cleanup freerdp_settings_set_pointer_len_
Instead of doing convertions to SSIZE_T for the key length id, use FreeRDP_UINT32_UNUSED
when a pointer has no associated len key.
2024-12-04 13:45:39 +01:00
Martin Fleisz
fb52b02487 Merge pull request #10894 from akallabeth/unify-simd-detection
[CMake,simd] unify WITH_SSE2, WITH_AVX2, WITH_NEON
2024-12-04 09:05:52 +01:00
akallabeth
05801a1623 Merge pull request #10773 from akallabeth/wtypes.h
[winpr,wtypes] simplify by basing on stdint.h
2024-12-03 17:50:09 +01:00
akallabeth
3253f30204 Merge pull request #10909 from akallabeth/shadow-gfx-fix
[channels,rdpgfx] fix rdpgfx_server_packet_complete_header
2024-12-03 17:26:25 +01:00
akallabeth
60dd32fbc7 [channels,rdpgfx] fix rdpgfx_server_packet_complete_header
a condition check was inverted preventing server side gfx packets to be
sent.
2024-12-03 17:11:37 +01:00
akallabeth
c2beba472e Merge pull request #10905 from akallabeth/monitor-check-verbose
Monitor check verbose
2024-12-03 13:34:38 +01:00
akallabeth
646cacca0e [core,settings] add instructions on fail
Add bug reporting instructions for failing monitor configurations
2024-12-03 13:06:29 +01:00
akallabeth
d48cd481e7 [core,settings] dump monitor configuration to log 2024-12-03 13:00:54 +01:00
Martin Fleisz
f526e6a8c2 Merge pull request #10907 from akallabeth/clip-fix-unicode
[winpr,clipboard] follow up to #10901
2024-12-03 11:58:55 +01:00
akallabeth
172fe47c85 [ci,cmake-format] add ci configuration
also format the ci configuration files
2024-12-03 11:54:38 +01:00
akallabeth
b4976163cd [CMake,simd] unify WITH_SSE2, WITH_AVX2, WITH_NEON
* Add new CMake option WITH_SIMD to enable best available instruction
  type
* Unify simd related defines in single header
2024-12-03 11:54:36 +01:00
akallabeth
be6c108189 [winpr,clipboard] follow up to #10901
CF_UNICODETEXT is UCS-2 encoded, so determine string length with
_wscnlen, the other string types are in local encoding which requires
strnlen
2024-12-03 11:40:53 +01:00
Martin Fleisz
4b35fe8cfa Merge pull request #10900 from akallabeth/drive-sync
[channels,drive] allow operation on main thread
2024-12-03 10:17:46 +01:00
akallabeth
861e3bbe65 [channels,drive] allow operation on main thread 2024-12-03 09:58:09 +01:00