mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 07:28:47 +00:00
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:
parent
746ece1a08
commit
7fe55d2f7a
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue