ntdll: Avoid null dereference in the NtCreateSymbolicLinkObject trace.

This commit is contained in:
Alexandre Julliard 2009-02-16 11:41:09 +01:00
parent 6a1537c4b5
commit d62d6ac9c6
1 changed files with 4 additions and 3 deletions

View File

@ -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;