From: Edin Kadribasic Date: Mon, 5 Jun 2006 22:23:39 +0000 (+0000) Subject: MFB X-Git-Tag: RELEASE_1_0_0RC1~2781 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19787d38e94784e3049bef22265c1ca5f441cb0f;p=php MFB --- diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 710bb863de..bacfb2fc2c 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -706,7 +706,7 @@ static int php_stdiop_set_option(php_stream *stream, int option, int value, void delta = range->offset - loffs; } - data->last_mapped_addr = MapViewOfFile(data->file_mapping, acc, 0, loffs, range->length); + data->last_mapped_addr = MapViewOfFile(data->file_mapping, acc, 0, loffs, range->length + delta); if (data->last_mapped_addr) { /* give them back the address of the start offset they requested */