[coverity] 1543039 Use of 32-bit time_t

This commit is contained in:
akallabeth 2024-04-12 08:44:02 +02:00 committed by akallabeth
parent f0cc78fe1a
commit 7bf76ab67f
2 changed files with 3 additions and 3 deletions

View File

@ -405,8 +405,8 @@ static BOOL freerdp_prevent_session_lock(rdpContext* context)
if (now - in->lastInputTimestamp > FakeMouseMotionInterval) if (now - in->lastInputTimestamp > FakeMouseMotionInterval)
{ {
WLog_Print(context->log, WLOG_DEBUG, WLog_Print(context->log, WLOG_DEBUG,
"fake mouse move: x=%d y=%d lastInputTimestamp=%d " "fake mouse move: x=%d y=%d lastInputTimestamp=%" PRIu64 " "
"FakeMouseMotionInterval=%d", "FakeMouseMotionInterval=%" PRIu32,
in->lastX, in->lastY, in->lastInputTimestamp, FakeMouseMotionInterval); in->lastX, in->lastY, in->lastInputTimestamp, FakeMouseMotionInterval);
BOOL status = freerdp_input_send_mouse_event(context->input, PTR_FLAGS_MOVE, in->lastX, BOOL status = freerdp_input_send_mouse_event(context->input, PTR_FLAGS_MOVE, in->lastX,

View File

@ -38,7 +38,7 @@ typedef struct
rdpInputProxy* proxy; rdpInputProxy* proxy;
wMessageQueue* queue; wMessageQueue* queue;
UINT32 lastInputTimestamp; UINT64 lastInputTimestamp;
UINT16 lastX; UINT16 lastX;
UINT16 lastY; UINT16 lastY;
} rdp_input_internal; } rdp_input_internal;