From fa59c4b70587abe97553ed559f82732b04098bd4 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Thu, 17 Mar 2022 20:45:53 +0100 Subject: [PATCH] Fixed compile warnings --- client/common/client.c | 2 +- server/Mac/mfreerdp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/common/client.c b/client/common/client.c index 7ee4ead0f..91f07d1ac 100644 --- a/client/common/client.c +++ b/client/common/client.c @@ -904,7 +904,7 @@ BOOL client_auto_reconnect_ex(freerdp* instance, BOOL (*window_events)(freerdp* if (freerdp_reconnect(instance)) return TRUE; - switch (freerdp_get_last_error(instance)) + switch (freerdp_get_last_error(instance->context)) { case FREERDP_ERROR_CONNECT_CANCELLED: WLog_WARN(TAG, "Autoreconnect aborted by user"); diff --git a/server/Mac/mfreerdp.c b/server/Mac/mfreerdp.c index ed571ab24..1cc228ead 100644 --- a/server/Mac/mfreerdp.c +++ b/server/Mac/mfreerdp.c @@ -63,7 +63,7 @@ static void mf_server_main_loop(freerdp_listener* instance) break; } - status = WaitForMultipleObjects(handles, count, FALSE, INFINITE); + status = WaitForMultipleObjects(count, handles, FALSE, INFINITE); if (status == WAIT_FAILED) { WLog_ERR(TAG, "WaitForMultipleObjects failed");