kernel32: Import FlushFileBuffers from kernelbase.

Console special-case is no longer needed.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-10-15 18:19:53 +02:00 committed by Alexandre Julliard
parent 746ece1a08
commit 7fe55d2f7a
2 changed files with 1 additions and 15 deletions

View File

@ -319,20 +319,6 @@ BOOL WINAPI KERNEL32_WriteFile( HANDLE file, LPCVOID buffer, DWORD count,
}
/*************************************************************************
* FlushFileBuffers (KERNEL32.@)
*/
BOOL WINAPI KERNEL32_FlushFileBuffers( HANDLE file )
{
IO_STATUS_BLOCK iosb;
/* this will fail (as expected) for an output handle */
if (is_console_handle( file )) return FlushConsoleInputBuffer( file );
return set_ntstatus( NtFlushBuffersFile( file, &iosb ));
}
/***********************************************************************
* DosDateTimeToFileTime (KERNEL32.@)
*/

View File

@ -518,7 +518,7 @@
@ stdcall -import FlsGetValue(long)
@ stdcall -import FlsSetValue(long ptr)
@ stdcall -import FlushConsoleInputBuffer(long)
@ stdcall FlushFileBuffers(long) KERNEL32_FlushFileBuffers
@ stdcall -import FlushFileBuffers(long)
@ stdcall -import FlushInstructionCache(long long long)
@ stdcall FlushProcessWriteBuffers() ntdll.NtFlushProcessWriteBuffers
@ stdcall -import FlushViewOfFile(ptr long)