From 0c5118144a5df1e1237aa73f18c0fc2c496259bb Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Thu, 9 Jun 2005 09:45:42 +0000 Subject: [PATCH] - Don't free the fileio object because it will be freed anyway in fileio_terminate on error. - Print out statuses in hex, rather than decimal. --- dlls/ntdll/file.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index 9ab213b8146..53df7e623b6 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -362,7 +362,7 @@ static void WINAPI FILE_AsyncReadService(void *user, PIO_STATUS_BLOCK iosb, ULON int result; int already = iosb->Information; - TRACE("%p %p %lu\n", iosb, fileio->buffer, status); + TRACE("%p %p 0x%lx\n", iosb, fileio->buffer, status); switch (status) { @@ -525,7 +525,6 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent, { wine_server_release_fd( hFile, unix_handle ); if (flags & FD_FLAG_TIMEOUT) NtClose(hEvent); - RtlFreeHeap(GetProcessHeap(), 0, fileio); return ret; } if (flags & FD_FLAG_TIMEOUT) @@ -596,7 +595,7 @@ static void WINAPI FILE_AsyncWriteService(void *ovp, IO_STATUS_BLOCK *iosb, ULON int result; int already = iosb->Information; - TRACE("(%p %p %lu)\n",iosb, fileio->buffer, status); + TRACE("(%p %p 0x%lx)\n",iosb, fileio->buffer, status); switch (status) { @@ -739,7 +738,6 @@ NTSTATUS WINAPI NtWriteFile(HANDLE hFile, HANDLE hEvent, { wine_server_release_fd( hFile, unix_handle ); if (flags & FD_FLAG_TIMEOUT) NtClose(hEvent); - RtlFreeHeap(GetProcessHeap(), 0, fileio); return ret; } if (flags & FD_FLAG_TIMEOUT)