[PATCH] kernel32/tests: Fix a test failure on Windows XP.

Alexandre Julliard julliard at winehq.org
Fri Sep 27 10:51:08 CDT 2019


Sven Baars <sven.wine at gmail.com> writes:

> Signed-off-by: Sven Baars <sven.wine at gmail.com>
> ---
>  dlls/kernel32/tests/actctx.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/dlls/kernel32/tests/actctx.c b/dlls/kernel32/tests/actctx.c
> index 2b8c3d710a..0dad5cb785 100644
> --- a/dlls/kernel32/tests/actctx.c
> +++ b/dlls/kernel32/tests/actctx.c
> @@ -3303,8 +3303,8 @@ static void get_application_directory(char *buffer, int buffer_size)
>  /* Test loading two sxs dlls at the same time */
>  static void test_two_dlls_at_same_time(void)
>  {
> -    sxs_info dll_1;
> -    sxs_info dll_2;
> +    sxs_info dll_1 = {0};
> +    sxs_info dll_2 = {0};

It would be better to make sure that fill_sxs_info() initializes things
correctly, instead of zeroing everything to hide the bug.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list