Alexandre Julliard : ntdll: Avoid null dereference in the NtCreateSymbolicLinkObject trace.
Alexandre Julliard
julliard at winehq.org
Mon Feb 16 09:34:50 CST 2009
Module: wine
Branch: master
Commit: d62d6ac9c6ac9afd01f4a045c736b9dbf95940ef
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d62d6ac9c6ac9afd01f4a045c736b9dbf95940ef
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Feb 16 11:41:09 2009 +0100
ntdll: Avoid null dereference in the NtCreateSymbolicLinkObject trace.
---
dlls/ntdll/om.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/om.c b/dlls/ntdll/om.c
index 64e48a3..fb6d675 100644
--- a/dlls/ntdll/om.c
+++ b/dlls/ntdll/om.c
@@ -540,13 +540,14 @@ NTSTATUS WINAPI NtCreateSymbolicLinkObject(OUT PHANDLE SymbolicLinkHandle,IN ACC
IN PUNICODE_STRING TargetName)
{
NTSTATUS ret;
- TRACE("(%p,0x%08x,%p, -> %s)\n", SymbolicLinkHandle, DesiredAccess, ObjectAttributes,
- debugstr_us(TargetName));
- dump_ObjectAttributes(ObjectAttributes);
if (!SymbolicLinkHandle || !TargetName) return STATUS_ACCESS_VIOLATION;
if (!TargetName->Buffer) return STATUS_INVALID_PARAMETER;
+ TRACE("(%p,0x%08x,%p, -> %s)\n", SymbolicLinkHandle, DesiredAccess, ObjectAttributes,
+ debugstr_us(TargetName));
+ dump_ObjectAttributes(ObjectAttributes);
+
SERVER_START_REQ(create_symlink)
{
req->access = DesiredAccess;
More information about the wine-cvs
mailing list