Paul Vriens : ntdll: Fix possible TRACE crash.
Module: wine Branch: refs/heads/master Commit: 2e3e74ebd0a9f7860db823582020cd5813559d5b URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=2e3e74ebd0a9f7860db82358... Author: Paul Vriens <Paul.Vriens(a)xs4all.nl> Date: Mon Jul 3 14:20:40 2006 +0200 ntdll: Fix possible TRACE crash. --- dlls/ntdll/reg.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/ntdll/reg.c b/dlls/ntdll/reg.c index 5a1f5c2..e77c48a 100644 --- a/dlls/ntdll/reg.c +++ b/dlls/ntdll/reg.c @@ -55,13 +55,13 @@ NTSTATUS WINAPI NtCreateKey( PHANDLE ret { NTSTATUS ret; - TRACE( "(%p,%s,%s,%lx,%lx,%p)\n", attr->RootDirectory, debugstr_us(attr->ObjectName), - debugstr_us(class), options, access, retkey ); - if (!retkey || !attr) return STATUS_ACCESS_VIOLATION; if (attr->Length > sizeof(OBJECT_ATTRIBUTES)) return STATUS_INVALID_PARAMETER; if (attr->ObjectName->Length > MAX_NAME_LENGTH) return STATUS_BUFFER_OVERFLOW; + TRACE( "(%p,%s,%s,%lx,%lx,%p)\n", attr->RootDirectory, debugstr_us(attr->ObjectName), + debugstr_us(class), options, access, retkey ); + SERVER_START_REQ( create_key ) { req->parent = attr->RootDirectory;
participants (1)
-
Alexandre Julliard