[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: [PATCH] ole32: Don't use attr.ObjectName after calling create_key (cppcheck)
From: Alex Henrie <alexhenrie24 () gmail ! com>
Date: 2021-12-30 6:21:19
Message-ID: 20211230062119.95326-3-alexhenrie24 () gmail ! com
[Download RAW message or body]
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
---
dlls/ole32/compobj.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index 815fdcb11d0..41a179046a9 100644
--- a/dlls/ole32/compobj.c
+++ b/dlls/ole32/compobj.c
@@ -262,7 +262,7 @@ static HKEY create_classes_root_hkey(DWORD access)
attr.SecurityQualityOfService = NULL;
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