[ntdll][1/3] Fix possible TRACE crash
Paul Vriens
Paul.Vriens at xs4all.nl
Mon Jul 3 07:20:40 CDT 2006
Hi,
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(-)
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20060703/1bfde5c0/attachment.htm
More information about the wine-patches
mailing list