From d3ba8ebf004eaa052ba2c01313c996a47e66172f Mon Sep 17 00:00:00 2001 From: akallabeth Date: Wed, 23 Aug 2023 13:03:00 +0200 Subject: [PATCH] [core,update] log BeginPaint/EndPaint failure --- libfreerdp/core/update.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libfreerdp/core/update.c b/libfreerdp/core/update.c index 1363d6776..363310348 100644 --- a/libfreerdp/core/update.c +++ b/libfreerdp/core/update.c @@ -3286,7 +3286,10 @@ BOOL update_begin_paint(rdpUpdate* update) WINPR_ASSERT(update); rdp_update_lock(update); - return IFCALLRESULT(TRUE, update->BeginPaint, update->context); + BOOL rc = IFCALLRESULT(TRUE, update->BeginPaint, update->context); + if (!rc) + WLog_WARN(TAG, "BeginPaint call failed"); + return rc; } BOOL update_end_paint(rdpUpdate* update) @@ -3295,7 +3298,8 @@ BOOL update_end_paint(rdpUpdate* update) WINPR_ASSERT(update); IFCALLRET(update->EndPaint, rc, update->context); - + if (!rc) + WLog_WARN(TAG, "EndPaint call failed"); rdp_update_unlock(update); return rc; }