[PATCH] combase: Don't use attr.ObjectName after calling create_key (cppcheck)
Alex Henrie
alexhenrie24 at gmail.com
Thu Dec 30 00:21:17 CST 2021
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
dlls/combase/combase.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/combase/combase.c b/dlls/combase/combase.c
index 4677972656f..c71158af47c 100644
--- a/dlls/combase/combase.c
+++ b/dlls/combase/combase.c
@@ -232,7 +232,7 @@ static HKEY create_classes_root_hkey(DWORD access)
RtlInitUnicodeString(&name, L"\\Registry\\Machine\\Software\\Classes");
if (create_key( &hkey, access, &attr )) return 0;
- TRACE( "%s -> %p\n", debugstr_w(attr.ObjectName->Buffer), hkey );
+ TRACE( "%s -> %p\n", debugstr_w(name.Buffer), hkey );
if (!(access & KEY_WOW64_64KEY))
{
--
2.34.1
More information about the wine-devel
mailing list