diff --git a/dlls/mshtml/script.c b/dlls/mshtml/script.c index 40deda4e9a6..f10a702d7cc 100644 --- a/dlls/mshtml/script.c +++ b/dlls/mshtml/script.c @@ -989,10 +989,10 @@ static HRESULT ScriptBSC_read_data(BSCallback *bsc, IStream *stream) do { if(This->bsc.readed >= This->size) { - void *new_buf; - new_buf = heap_realloc(This->buf, This->size << 1); - if(!new_buf) - return E_OUTOFMEMORY; + void *new_buf; + new_buf = heap_realloc(This->buf, This->size << 1); + if(!new_buf) + return E_OUTOFMEMORY; This->size <<= 1; This->buf = new_buf; }