<!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
&nbsp; 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( &quot;(%p,%s,%s,%lx,%lx,%p)\n&quot;, attr-&gt;RootDirectory, debugstr_us(attr-&gt;ObjectName),
+    TRACE( &quot;(%p,%s,%s,%lx,%lx,%p)\n&quot;, (attr) ? attr-&gt;RootDirectory : NULL,
+           (attr) ? debugstr_us(attr-&gt;ObjectName) : NULL,
            debugstr_us(class), options, access, retkey );
 
     if (!retkey || !attr) return STATUS_ACCESS_VIOLATION;
-- 
1.4.1
</PRE>
</BODY>
</HTML>