reg/tests: Don't call RegCloseKey on uninitialized memory.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2017-07-12 15:03:19 +02:00 committed by Alexandre Julliard
parent f53b6bfde0
commit db11f739ea
1 changed files with 1 additions and 1 deletions

View File

@ -793,7 +793,7 @@ static void test_import(void)
DWORD r, dword = 0x123, type, size;
char test1_reg[MAX_PATH], test2_reg[MAX_PATH], cmdline[MAX_PATH];
char test_string[] = "Test string", buffer[24];
HKEY hkey, subkey;
HKEY hkey, subkey = NULL;
LONG err;
BYTE hex[8];