kernel32: Import WriteFile 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-11-17 18:58:26 +01:00 committed by Alexandre Julliard
parent 22afbb8fe7
commit 6a1a8bdf35
2 changed files with 1 additions and 12 deletions

View File

@ -306,17 +306,6 @@ BOOL WINAPI KERNEL32_ReadFile( HANDLE file, LPVOID buffer, DWORD count,
}
/*************************************************************************
* WriteFile (KERNEL32.@)
*/
BOOL WINAPI KERNEL32_WriteFile( HANDLE file, LPCVOID buffer, DWORD count,
LPDWORD result, LPOVERLAPPED overlapped )
{
if (is_console_handle( file )) return WriteConsoleA( file, buffer, count, result, NULL );
return WriteFile( file, buffer, count, result, overlapped );
}
/***********************************************************************
* DosDateTimeToFileTime (KERNEL32.@)
*/

View File

@ -1630,7 +1630,7 @@
@ stdcall -import WriteConsoleOutputCharacterW(long ptr long long ptr)
@ stdcall -import WriteConsoleOutputW(long ptr long long ptr)
@ stdcall -import WriteConsoleW(long ptr long ptr ptr)
@ stdcall WriteFile(long ptr long ptr ptr) KERNEL32_WriteFile
@ stdcall -import WriteFile(long ptr long ptr ptr)
@ stdcall -import WriteFileEx(long ptr long ptr ptr)
@ stdcall -import WriteFileGather(long ptr long ptr ptr)
@ stdcall WritePrivateProfileSectionA(str str str)