diff options
author | Giovanni panozzo <giovanni@panozzo.it> | 2021-10-14 12:28:08 +0300 |
---|---|---|
committer | Giovanni panozzo <giovanni@panozzo.it> | 2021-10-14 12:28:08 +0300 |
commit | 2ed04f84f19ca532954635480f9fd8b5e2b96315 (patch) | |
tree | a36f6bf949b594e53cc619c50d95c073bc8227d3 /plugins | |
parent | 2504ba9050c24036e083e0b0dfae0f0aa5c9317a (diff) |
Fix possible SGSEGV
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/rdp/rdp_plugin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/rdp/rdp_plugin.c b/plugins/rdp/rdp_plugin.c index 274dfd25c..35234b619 100644 --- a/plugins/rdp/rdp_plugin.c +++ b/plugins/rdp/rdp_plugin.c @@ -511,6 +511,9 @@ BOOL rf_end_paint(rdpContext *context) gdi = context->gdi; rfi = (rfContext *)context; + if (gdi == NULL || gdi->primary == NULL || gdi->primary->hdc == NULL) + return TRUE; + if (gdi->primary->hdc->hwnd->invalid->null) return TRUE; |