https://git.reactos.org/?p=reactos.git;a=commitdiff;h=207a0f520e6199c5f6aaf987112c07f10ccbc0cf

commit 207a0f520e6199c5f6aaf987112c07f10ccbc0cf
Author:     Timo Kreuzer <[email protected]>
AuthorDate: Sun Apr 28 20:27:21 2019 +0200
Commit:     HervĂ© Poussineau <[email protected]>
CommitDate: Mon May 27 13:22:40 2019 +0200

    [MSHTML] Convert tabs to spaces
    
    Fixes GCC 8 warning:
    dll/win32/mshtml/script.c:844:4: error: this 'if' clause does not guard... 
[-Werror=misleading-indentation]
        if(!new_buf)
        ^~
    dll/win32/mshtml/script.c:846:13: note: ...this statement, but the latter 
is misleadingly indented as if it were guarded by the 'if'
                 This->size <<= 1;
                 ^~~~
---
 dll/win32/mshtml/script.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dll/win32/mshtml/script.c b/dll/win32/mshtml/script.c
index 39d8aedbb4..b6d309ed58 100644
--- a/dll/win32/mshtml/script.c
+++ b/dll/win32/mshtml/script.c
@@ -839,10 +839,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;
         }

Reply via email to