[core,fastpat] add logging for failures
This commit is contained in:
parent
74b1d5da89
commit
769ffbd8a0
@ -629,10 +629,12 @@ state_run_t fastpath_recv_updates(rdpFastPath* fastpath, wStream* s)
|
||||
{
|
||||
state_run_t rc = STATE_RUN_FAILED;
|
||||
|
||||
if (!fastpath || !fastpath->rdp || !fastpath->rdp->update || !s)
|
||||
return STATE_RUN_FAILED;
|
||||
WINPR_ASSERT(s);
|
||||
WINPR_ASSERT(fastpath);
|
||||
WINPR_ASSERT(fastpath->rdp);
|
||||
|
||||
rdpUpdate* update = fastpath->rdp->update;
|
||||
WINPR_ASSERT(update);
|
||||
|
||||
if (!update_begin_paint(update))
|
||||
goto fail;
|
||||
|
@ -957,7 +957,7 @@ BOOL security_fips_check_signature(const BYTE* data, size_t length, const BYTE*
|
||||
security_UINT32_le(use_count_le, sizeof(use_count_le), rdp->decrypt_use_count++);
|
||||
|
||||
if (!(hmac = winpr_HMAC_New()))
|
||||
return FALSE;
|
||||
goto out;
|
||||
|
||||
if (!winpr_HMAC_Init(hmac, WINPR_MD_SHA1, rdp->fips_sign_key, WINPR_SHA1_DIGEST_LENGTH))
|
||||
goto out;
|
||||
|
@ -3293,9 +3293,7 @@ BOOL update_end_paint(rdpUpdate* update)
|
||||
{
|
||||
BOOL rc = TRUE;
|
||||
|
||||
if (!update)
|
||||
return FALSE;
|
||||
|
||||
WINPR_ASSERT(update);
|
||||
IFCALLRET(update->EndPaint, rc, update->context);
|
||||
|
||||
rdp_update_unlock(update);
|
||||
|
Loading…
Reference in New Issue
Block a user