shell32: Avoid -Wmisleading-indentation warning in test_GetCurrentProcessExplicitAppUserModelID.

Gerald Pfeifer gerald at pfeifer.com
Wed Aug 10 14:31:36 CDT 2016


This has now been obsoleted (duplicated) by

  commit 27f91d71a2401781d38576d90183c26b519366e0
  Author: Nikolay Sivov <nsivov at codeweavers.com>
  Date:   Tue Aug 9 20:02:20 2016 +0300

    shell32/tests: Fix indentation warnings on GCC 6.
    
    Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
    Signed-off-by: Alexandre Julliard <julliard at winehq.org>

Gerald

On Tue, 12 Jan 2016, Gerald Pfeifer wrote:
> When glancing at this, at first I actually got mislead, so being
> explicit really makes sense beyond just avoiding the warning.
> 
> Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
> ---
>  dlls/shell32/tests/appbar.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/dlls/shell32/tests/appbar.c b/dlls/shell32/tests/appbar.c
> index 8138131..1df6d80 100644
> --- a/dlls/shell32/tests/appbar.c
> +++ b/dlls/shell32/tests/appbar.c
> @@ -442,8 +442,9 @@ static void test_GetCurrentProcessExplicitAppUserModelID(void)
>          return;
>      }
>  
> -if (0) /* crashes on native */
> +if (0) /* crashes on native */ {
>      hr = pGetCurrentProcessExplicitAppUserModelID(NULL);
> +}
>  
>      appid = (void*)0xdeadbeef;
>      hr = pGetCurrentProcessExplicitAppUserModelID(&appid);
> 



More information about the wine-patches mailing list