projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f15b80
)
Fix #4291: xfreerdp segfault when connecting freerdp-shadow-cli
author
daixj
<daixj@shterm.com>
Wed, 29 Nov 2017 10:12:40 +0000
(
05:12
-0500)
committer
daixj
<daixj@shterm.com>
Wed, 29 Nov 2017 10:12:40 +0000
(
05:12
-0500)
libfreerdp/gdi/gdi.c
patch
|
blob
|
history
diff --git
a/libfreerdp/gdi/gdi.c
b/libfreerdp/gdi/gdi.c
index
e099ecf
..
af6ac5a
100644
(file)
--- a/
libfreerdp/gdi/gdi.c
+++ b/
libfreerdp/gdi/gdi.c
@@
-1149,11
+1149,11
@@
static BOOL gdi_init_primary(rdpGdi* gdi, UINT32 stride, UINT32 format,
buffer, pfree);
}
- gdi->stride = gdi->primary->bitmap->scanline;
-
if (!gdi->primary->bitmap)
goto fail_bitmap;
+ gdi->stride = gdi->primary->bitmap->scanline;
+
gdi_SelectObject(gdi->primary->hdc, (HGDIOBJECT) gdi->primary->bitmap);
gdi->primary->org_bitmap = NULL;
gdi->primary_buffer = gdi->primary->bitmap->data;