From 9ef9bf5c25c66c2f5c47e8b7d8a987af833bb0ea Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 31 Jan 2026 13:10:47 +0200 Subject: [PATCH] [WININET] Fix missing braces (from wine-10.0) Fixes GCC 13 warning about misleading indentation. C:/ReactOS/reactos/modules/rostests/winetests/advapi32/cred.c: In function 'func_cred': C:/ReactOS/reactos/modules/rostests/winetests/advapi32/cred.c:809:5: error: this 'else' clause does not guard... [-Werror=misleading-indentation] 809 | else | ^~~~ In file included from C:/ReactOS/reactos/modules/rostests/winetests/advapi32/cred.c:28: C:/ReactOS/reactos/sdk/include/wine/test.h:168:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 168 | #define trace_(file, line) (winetest_set_location(file, line), 0) ? (void)0 : winetest_trace | ^ C:/ReactOS/reactos/sdk/include/wine/test.h:176:18: note: in expansion of macro 'trace_' 176 | #define trace trace_(__FILE__, __LINE__) | ^~~~~~ C:/ReactOS/reactos/modules/rostests/winetests/advapi32/cred.c:812:9: note: in expansion of macro 'trace' 812 | trace("domain password:\n"); | ^~~~~ --- dll/win32/wininet/internet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dll/win32/wininet/internet.c b/dll/win32/wininet/internet.c index a0444e07c3d..5dc108e06b2 100644 --- a/dll/win32/wininet/internet.c +++ b/dll/win32/wininet/internet.c @@ -2880,9 +2880,10 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption, } else if(dwBufferLength != sizeof(ULONG)) { SetLastError(ERROR_INTERNET_BAD_OPTION_LENGTH); ret = FALSE; - } else + } else { TRACE("INTERNET_OPTION_ERROR_MASK: %x\n", *(ULONG*)lpBuffer); lpwhh->ErrorMask = *(ULONG*)lpBuffer; + } } break; case INTERNET_OPTION_PROXY: