Sebastian Lackner : reg/tests: Don' t call RegCloseKey on uninitialized memory.
Alexandre Julliard
julliard at winehq.org
Wed Jul 12 15:37:26 CDT 2017
Module: wine
Branch: master
Commit: db11f739ea73d7c2d7d6cc09c5a40cc8b0d76dd0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=db11f739ea73d7c2d7d6cc09c5a40cc8b0d76dd0
Author: Sebastian Lackner <sebastian at fds-team.de>
Date: Wed Jul 12 15:03:19 2017 +0200
reg/tests: Don't call RegCloseKey on uninitialized memory.
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/reg/tests/reg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/reg/tests/reg.c b/programs/reg/tests/reg.c
index af09290..941d325 100644
--- a/programs/reg/tests/reg.c
+++ b/programs/reg/tests/reg.c
@@ -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];
More information about the wine-cvs
mailing list