1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 20:06:18 +00:00

storage.dll16: Fix get_nth_next_small_blocknr.

Dividing the initial value of -1 by 128 yields 0, causing the
assertion to fail whenever the function is called with nr > 0 and
blocknr < 128.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2017-02-23 13:34:07 -06:00 committed by Alexandre Julliard
parent 0a2f9f54eb
commit e3781c84ab

View File

@ -600,7 +600,7 @@ STORAGE_get_next_small_blocknr(stream_access16 *str,int blocknr) {
*/
static int
STORAGE_get_nth_next_small_blocknr(stream_access16*str,int blocknr,int nr) {
int lastblocknr=-1;
int lastblocknr=-129;
BYTE block[BIGSIZE];
LPINT sbd = (LPINT)block;
struct storage_header sth;