c45e68
diff --git a/libfreerdp-core/update.c b/libfreerdp-core/update.c
c45e68
index c828b2214..5af9f6ab1 100644
c45e68
--- a/libfreerdp-core/update.c
c45e68
+++ b/libfreerdp-core/update.c
c45e68
@@ -90,7 +90,7 @@ void update_read_bitmap(rdpUpdate* update, STREAM* s, BITMAP_UPDATE* bitmap_upda
c45e68
 
c45e68
 	if (bitmap_update->number > bitmap_update->count)
c45e68
 	{
c45e68
-		uint16 count;
c45e68
+		uint32 count;
c45e68
 
c45e68
 		count = bitmap_update->number * 2;
c45e68
 
c45e68