Commit 7fe55d2f authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

kernel32: Import FlushFileBuffers from kernelbase.

Console special-case is no longer needed. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 746ece1a
......@@ -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.@)
*/
......
......@@ -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)
......
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