[PATCH] ole32: Don't use attr.ObjectName after calling create_key (cppcheck)
Alex Henrie
alexhenrie24 at gmail.com
Thu Dec 30 00:21:19 CST 2021
Signed-off-by: Alex Henrie <alexhenrie24 at 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
More information about the wine-devel
mailing list