ieframe: Allow travellog buffer to grow even if we're loading from the history.

Spotted by Marcus Meissner.
This commit is contained in:
Jacek Caban 2015-07-20 14:01:13 +02:00 committed by Alexandre Julliard
parent 541a6e1e5e
commit 5f2d2c146c
1 changed files with 17 additions and 17 deletions

View File

@ -395,8 +395,6 @@ static void update_travellog(DocHost *This)
{
travellog_entry_t *new_entry;
if(This->travellog.loading_pos == -1) {
/* Clear forward history. */
if(!This->travellog.log) {
This->travellog.log = heap_alloc(4 * sizeof(*This->travellog.log));
if(!This->travellog.log)
@ -414,6 +412,8 @@ static void update_travellog(DocHost *This)
This->travellog.size *= 2;
}
if(This->travellog.loading_pos == -1) {
/* Clear forward history. */
while(This->travellog.length > This->travellog.position)
free_travellog_entry(This->travellog.log + --This->travellog.length);
}