From: Michael Gilbert Date: Sat, 19 Mar 2022 00:48:02 +0000 (+0000) Subject: fix misleading-indentation warnings X-Git-Tag: archive/raspbian/7.0_repack-10+rpi1~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fe72ab4cca8c16860d94d6ac39ddf173c02b7aec;p=wine.git fix misleading-indentation warnings Gbp-Pq: Topic warnings Gbp-Pq: Name misleading-indentation.patch --- diff --git a/dlls/oleaut32/vartype.c b/dlls/oleaut32/vartype.c index 90b3fca..a11ef29 100644 --- a/dlls/oleaut32/vartype.c +++ b/dlls/oleaut32/vartype.c @@ -149,15 +149,27 @@ static HRESULT VARIANT_FromDisp(IDispatch* pdispIn, LCID lcid, void* pOut, /* Compiler cast where input cannot be negative */ #define NEGTST(dest, src, func) RETTYP _##func(src in, dest* out) { \ - if (in < 0) return DISP_E_OVERFLOW; *out = in; return S_OK; } + if (in < 0) \ + return DISP_E_OVERFLOW; \ + *out = in; \ + return S_OK; \ + } /* Compiler cast where input cannot be > some number */ #define POSTST(dest, src, func, tst) RETTYP _##func(src in, dest* out) { \ - if (in > (dest)tst) return DISP_E_OVERFLOW; *out = in; return S_OK; } + if (in > (dest)tst) \ + return DISP_E_OVERFLOW; \ + *out = in; \ + return S_OK; \ + } /* Compiler cast where input cannot be < some number or >= some other number */ #define BOTHTST(dest, src, func, lo, hi) RETTYP _##func(src in, dest* out) { \ - if (in < (dest)lo || in > hi) return DISP_E_OVERFLOW; *out = in; return S_OK; } + if (in < (dest)lo || in > hi) \ + return DISP_E_OVERFLOW; \ + *out = in; \ + return S_OK; \ + } /* I1 */ POSTST(signed char, BYTE, VarI1FromUI1, I1_MAX) diff --git a/dlls/shell32/classes.c b/dlls/shell32/classes.c index 4e57125..7bdcbf9 100644 --- a/dlls/shell32/classes.c +++ b/dlls/shell32/classes.c @@ -315,7 +315,7 @@ BOOL HCR_GetDefaultIconA(LPCSTR szClass, LPSTR szDest, DWORD len, int* picon_idx else TRACE("-- not found\n"); - return ret; + return ret; } /*************************************************************************************** diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index 1b6f060..080aed5 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -2863,9 +2863,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: