Commit db11f739 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

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

parent f53b6bfd
...@@ -793,7 +793,7 @@ static void test_import(void) ...@@ -793,7 +793,7 @@ static void test_import(void)
DWORD r, dword = 0x123, type, size; DWORD r, dword = 0x123, type, size;
char test1_reg[MAX_PATH], test2_reg[MAX_PATH], cmdline[MAX_PATH]; char test1_reg[MAX_PATH], test2_reg[MAX_PATH], cmdline[MAX_PATH];
char test_string[] = "Test string", buffer[24]; char test_string[] = "Test string", buffer[24];
HKEY hkey, subkey; HKEY hkey, subkey = NULL;
LONG err; LONG err;
BYTE hex[8]; BYTE hex[8];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment