<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.10.1">
</HEAD>
<BODY>
<PRE>
Hi,
<!--+GtkHTML:<DATA class="ClueFlow" key="orig" value="0">-->
running the tests with WINEDEBUG=+reg crashes Wine.
Changelog
Fix possible TRACE crash
Cheers,
Paul.
---
dlls/ntdll/reg.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
<!--+GtkHTML:<DATA class="ClueFlow" clear="orig">-->diff --git a/dlls/ntdll/reg.c b/dlls/ntdll/reg.c
index 5a1f5c2..c88bc1f 100644
--- a/dlls/ntdll/reg.c
+++ b/dlls/ntdll/reg.c
@@ -55,7 +55,8 @@ NTSTATUS WINAPI NtCreateKey( PHANDLE ret
{
NTSTATUS ret;
- TRACE( "(%p,%s,%s,%lx,%lx,%p)\n", attr->RootDirectory, debugstr_us(attr->ObjectName),
+ TRACE( "(%p,%s,%s,%lx,%lx,%p)\n", (attr) ? attr->RootDirectory : NULL,
+ (attr) ? debugstr_us(attr->ObjectName) : NULL,
debugstr_us(class), options, access, retkey );
if (!retkey || !attr) return STATUS_ACCESS_VIOLATION;
--
1.4.1
</PRE>
</BODY>
</HTML>