mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Logging and parser fixes (#7796)
* Fixed remdesk settings pointer * Fixed sign warnings in display_write_monitor_layout_pdu * Use freerdp_abort_connect_context and freerdp_shall_disconnect_context * Added and updates settings * info assert/dynamic timezone * mcs assert/log/flags * Fixed and added assertions for wStream * Unified stream length checks * Added new function to check for lenght and log * Replace all usages with this new function * Cleaned up PER, added parser logging * Cleaned up BER, added parser logging * log messages * Modified Stream_CheckAndLogRequiredLengthEx * Allow custom format and options * Add Stream_CheckAndLogRequiredLengthExVa for prepared va_list * Improved Stream_CheckAndLogRequiredLength * Now have log level adjustable * Added function equivalents for existing logger * Added a backtrace in case of a failure is detected * Fixed public API input checks
This commit is contained in:
@@ -242,7 +242,7 @@ static DWORD WINAPI tf_client_thread_proc(LPVOID arg)
|
||||
if (instance->context->settings->AuthenticationOnly)
|
||||
{
|
||||
result = freerdp_get_last_error(instance->context);
|
||||
freerdp_abort_connect(instance);
|
||||
freerdp_abort_connect_context(instance->context);
|
||||
WLog_ERR(TAG, "Authentication only, exit status 0x%08" PRIx32 "", result);
|
||||
goto disconnect;
|
||||
}
|
||||
@@ -254,7 +254,7 @@ static DWORD WINAPI tf_client_thread_proc(LPVOID arg)
|
||||
return result;
|
||||
}
|
||||
|
||||
while (!freerdp_shall_disconnect(instance))
|
||||
while (!freerdp_shall_disconnect_context(instance->context))
|
||||
{
|
||||
nCount = freerdp_get_event_handles(instance->context, handles, ARRAYSIZE(handles));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user