From aa5de69c3a12881efaced680690e852e54f418c3 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Mon, 25 Aug 2008 00:45:11 +0200 Subject: [PATCH] ntdll/file.c: Allow to TRACE NtCreateFile returned handles. Providing the file handle allows to map read/write requests to the corresponding file name. --- dlls/ntdll/file.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index d7f5b93..8cbd625 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -178,7 +178,11 @@ NTSTATUS WINAPI NtCreateFile( PHANDLE handle, ACCESS_MASK access, POBJECT_ATTRIB *handle = reply->handle; } SERVER_END_REQ; - if (io->u.Status == STATUS_SUCCESS) io->Information = FILE_OPENED; + if (io->u.Status == STATUS_SUCCESS) + { + io->Information = FILE_OPENED; + TRACE("returning handle %p\n", *handle); + } return io->u.Status; } @@ -247,6 +251,7 @@ NTSTATUS WINAPI NtCreateFile( PHANDLE handle, ACCESS_MASK access, POBJECT_ATTRIB io->Information = FILE_OVERWRITTEN; break; } + TRACE("returning handle %p\n", *handle); } return io->u.Status; -- 1.5.6.3