Commit 2375a6e5 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

kernelbase: Return system error codes in the ReadDirectoryChangesW() completion callback.

Return system error codes instead of NT status codes in the ReadDirectoryChangesW() completion callback.
parent 71da6a71
......@@ -3299,7 +3299,7 @@ HANDLE WINAPI DECLSPEC_HOTPATCH ReOpenFile( HANDLE handle, DWORD access, DWORD s
static void WINAPI invoke_completion( void *context, IO_STATUS_BLOCK *io, ULONG res )
{
LPOVERLAPPED_COMPLETION_ROUTINE completion = context;
completion( io->u.Status, io->Information, (LPOVERLAPPED)io );
completion( RtlNtStatusToDosError( io->u.Status ), io->Information, (LPOVERLAPPED)io );
}
/****************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment