mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
[core,peer] set up channelErrorEvent
This commit is contained in:
parent
1bf0bb1a26
commit
f068d21a5e
@ -1320,6 +1320,8 @@ void freerdp_peer_context_free(freerdp_peer* client)
|
|||||||
{
|
{
|
||||||
rdpContext* ctx = client->context;
|
rdpContext* ctx = client->context;
|
||||||
|
|
||||||
|
CloseHandle(ctx->channelErrorEvent);
|
||||||
|
ctx->channelErrorEvent = NULL;
|
||||||
free(ctx->errorDescription);
|
free(ctx->errorDescription);
|
||||||
ctx->errorDescription = NULL;
|
ctx->errorDescription = NULL;
|
||||||
rdp_free(ctx->rdp);
|
rdp_free(ctx->rdp);
|
||||||
@ -1546,6 +1548,12 @@ BOOL freerdp_peer_context_new_ex(freerdp_peer* client, const rdpSettings* settin
|
|||||||
update_register_server_callbacks(rdp->update);
|
update_register_server_callbacks(rdp->update);
|
||||||
autodetect_register_server_callbacks(rdp->autodetect);
|
autodetect_register_server_callbacks(rdp->autodetect);
|
||||||
|
|
||||||
|
if (!(context->channelErrorEvent = CreateEvent(NULL, TRUE, FALSE, NULL)))
|
||||||
|
{
|
||||||
|
WLog_ERR(TAG, "CreateEvent failed!");
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(context->errorDescription = calloc(1, 500)))
|
if (!(context->errorDescription = calloc(1, 500)))
|
||||||
{
|
{
|
||||||
WLog_ERR(TAG, "calloc failed!");
|
WLog_ERR(TAG, "calloc failed!");
|
||||||
|
Loading…
Reference in New Issue
Block a user