Fixed compile warnings

This commit is contained in:
akallabeth 2022-03-17 20:45:53 +01:00 committed by akallabeth
parent 32a1f2cc66
commit fa59c4b705
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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");