[client,x11] fix integer narrow

This commit is contained in:
akallabeth 2024-09-25 03:21:23 +02:00
parent 7037a8a846
commit 15141385f6
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
2 changed files with 3 additions and 2 deletions

View File

@ -101,6 +101,7 @@
#include "xf_graphics.h"
#include "xf_keyboard.h"
#include "xf_channels.h"
#include "xf_client.h"
#include "xfreerdp.h"
#include "xf_utils.h"
@ -1689,7 +1690,7 @@ end:
return exit_code;
}
DWORD xf_exit_code_from_disconnect_reason(DWORD reason)
int xf_exit_code_from_disconnect_reason(DWORD reason)
{
if (reason == 0 ||
(reason >= XF_EXIT_PARSE_ARGUMENTS && reason <= XF_EXIT_CONNECT_NO_OR_MISSING_CREDENTIALS))

View File

@ -406,6 +406,6 @@ void xf_draw_screen_(xfContext* xfc, int x, int y, int w, int h, const char* fkt
BOOL xf_keyboard_update_modifier_map(xfContext* xfc);
DWORD xf_exit_code_from_disconnect_reason(DWORD reason);
int xf_exit_code_from_disconnect_reason(DWORD reason);
#endif /* FREERDP_CLIENT_X11_FREERDP_H */