[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    [PATCH] combase: Don't use attr.ObjectName after calling create_key (cppcheck)
From:       Alex Henrie <alexhenrie24 () gmail ! com>
Date:       2021-12-30 6:21:17
Message-ID: 20211230062119.95326-1-alexhenrie24 () gmail ! com
[Download RAW message or body]

Signed-off-by: Alex Henrie <alexhenrie24@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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic