From 21b5f0e4187cd7be11d7dc7ace452f0433efa27c Mon Sep 17 00:00:00 2001 From: Benoit LeBlanc Date: Fri, 21 Mar 2014 15:25:00 -0400 Subject: [PATCH] Fix windows build --- libfreerdp/core/rdp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libfreerdp/core/rdp.c b/libfreerdp/core/rdp.c index 30af56a41..8dd4ccbb5 100644 --- a/libfreerdp/core/rdp.c +++ b/libfreerdp/core/rdp.c @@ -235,11 +235,10 @@ BOOL rdp_set_error_info(rdpRdp* rdp, UINT32 errorInfo) if (rdp->errorInfo != ERRINFO_SUCCESS) { - rdp->context->LastError = MAKE_FREERDP_ERROR(ERRINFO, errorInfo); - ErrorInfoEventArgs e; rdpContext* context = rdp->instance->context; + rdp->context->LastError = MAKE_FREERDP_ERROR(ERRINFO, errorInfo); rdp_print_errinfo(rdp->errorInfo); EventArgsInit(&e, "freerdp");