[client,x11] fix integer narrow
This commit is contained in:
parent
7037a8a846
commit
15141385f6
@ -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))
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user