[PATCH] shell32/tests: Fix resource leak.

Nikolay Sivov nsivov at codeweavers.com
Fri Jan 5 06:54:21 CST 2018


On 01/05/2018 03:36 PM, Andrey Gusev wrote:

> Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
> ---
>   dlls/shell32/tests/progman_dde.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/dlls/shell32/tests/progman_dde.c b/dlls/shell32/tests/progman_dde.c
> index 28dad2c87f..d1947add10 100644
> --- a/dlls/shell32/tests/progman_dde.c
> +++ b/dlls/shell32/tests/progman_dde.c
> @@ -452,6 +452,7 @@ static void test_request_groups(DWORD instance, HCONV hconv)
>                  "directory '%s' missing from group list\n", finddata.cFileName);
>           }
>       } while (FindNextFileA(hfind, &finddata));
> +    CloseHandle(hfind);
>   }
>   
>   START_TEST(progman_dde)
CloseHandle() doesn't work on FindFirst* handles.



More information about the wine-devel mailing list