[PATCH] wininet: Fix misleading indentation
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Wed Dec 8 14:33:59 CST 2021
../wine/dlls/wininet/internet.c: In function ‘InternetSetOptionW’:
../wine/dlls/wininet/internet.c:2890:11: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
2890 | } else
| ^~~~
../wine/dlls/wininet/internet.c:2892:13: note: ...this statement, but the latter is misleadingly indented as if it were guard
ed by the ‘else’
2892 | lpwhh->ErrorMask = *(ULONG*)lpBuffer;
| ^~~~~
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/wininet/internet.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index b0fe8a5e3fb..59fae2fbc95 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -2887,9 +2887,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:
--
2.33.0
More information about the wine-devel
mailing list