- 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.
This commit is contained in:
Robert Shearman 2005-06-09 09:45:42 +00:00 committed by Alexandre Julliard
parent 33b09d457f
commit 0c5118144a
1 changed files with 2 additions and 4 deletions

View File

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