check size before decompressing
fixed return value from BOOL to int
Merge pull request #947 from hardening/rdpFix

check size before decompressing