fixed a typo with stream_skip
according to GDI-2.2.2.2.1.2.4 numberColors is an UINT16 fixed a rewrite error in multi_patblt
This commit is contained in:
parent
91a0b6bb98
commit
4d259b5c8e
@ -657,8 +657,8 @@ BOOL update_read_multi_patblt_order(STREAM* s, ORDER_INFO* orderInfo, MULTI_PATB
|
||||
ORDER_FIELD_COORD(3, multi_patblt->nWidth);
|
||||
ORDER_FIELD_COORD(4, multi_patblt->nHeight);
|
||||
ORDER_FIELD_BYTE(5, multi_patblt->bRop);
|
||||
ORDER_FIELD_BYTE(6, multi_patblt->backColor);
|
||||
ORDER_FIELD_BYTE(7, multi_patblt->foreColor);
|
||||
ORDER_FIELD_COLOR(6, multi_patblt->backColor);
|
||||
ORDER_FIELD_COLOR(7, multi_patblt->foreColor);
|
||||
|
||||
if(!update_read_brush(s, &multi_patblt->brush, orderInfo->fieldFlags >> 7))
|
||||
return FALSE;
|
||||
@ -1218,7 +1218,7 @@ BOOL update_read_cache_color_table_order(STREAM* s, CACHE_COLOR_TABLE_ORDER* cac
|
||||
if(stream_get_left(s) < 3)
|
||||
return FALSE;
|
||||
stream_read_BYTE(s, cache_color_table_order->cacheIndex); /* cacheIndex (1 byte) */
|
||||
stream_read_BYTE(s, cache_color_table_order->numberColors); /* numberColors (2 bytes) */
|
||||
stream_read_UINT16(s, cache_color_table_order->numberColors); /* numberColors (2 bytes) */
|
||||
|
||||
if(stream_get_left(s) < cache_color_table_order->numberColors * 4)
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user