Commit b6338878 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Moved kernel32.FlushFileBuffers to ntdll.NtFlushBuffersFile.

parent a03e66dc
...@@ -491,3 +491,18 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile ( ...@@ -491,3 +491,18 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile (
IoStatusBlock->Information = len; IoStatusBlock->Information = len;
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
/******************************************************************
* NtFlushBuffersFile (NTDLL.@)
*/
NTSTATUS WINAPI NtFlushBuffersFile( HANDLE hFile, IO_STATUS_BLOCK* IoStatusBlock )
{
NTSTATUS ret;
SERVER_START_REQ( flush_file )
{
req->handle = hFile;
ret = wine_server_call( req );
}
SERVER_END_REQ;
return ret;
}
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
@ stdcall NtEnumerateKey (long long long long long long) @ stdcall NtEnumerateKey (long long long long long long)
@ stdcall NtEnumerateValueKey (long long long long long long) @ stdcall NtEnumerateValueKey (long long long long long long)
@ stub NtExtendSection @ stub NtExtendSection
@ stub NtFlushBuffersFile @ stdcall NtFlushBuffersFile(long ptr)
@ stub NtFlushInstructionCache @ stub NtFlushInstructionCache
@ stdcall NtFlushKey(long) @ stdcall NtFlushKey(long)
@ stdcall NtFlushVirtualMemory(long ptr ptr long) @ stdcall NtFlushVirtualMemory(long ptr ptr long)
...@@ -441,7 +441,7 @@ ...@@ -441,7 +441,7 @@
@ stdcall RtlInt64ToUnicodeString(long long long ptr) @ stdcall RtlInt64ToUnicodeString(long long long ptr)
@ stdcall RtlIntegerToChar(long long long ptr) @ stdcall RtlIntegerToChar(long long long ptr)
@ stdcall RtlIntegerToUnicodeString(long long ptr) @ stdcall RtlIntegerToUnicodeString(long long ptr)
@ stdcall RtlIsDosDeviceName_U(wstr) RtlIsDosDeviceName_U @ stdcall RtlIsDosDeviceName_U(wstr)
@ stub RtlIsGenericTableEmpty @ stub RtlIsGenericTableEmpty
@ stdcall RtlIsNameLegalDOS8Dot3(ptr ptr ptr) @ stdcall RtlIsNameLegalDOS8Dot3(ptr ptr ptr)
@ stdcall RtlIsTextUnicode(ptr long ptr) @ stdcall RtlIsTextUnicode(ptr long ptr)
...@@ -634,7 +634,7 @@ ...@@ -634,7 +634,7 @@
@ stdcall ZwEnumerateKey(long long long ptr long ptr) NtEnumerateKey @ stdcall ZwEnumerateKey(long long long ptr long ptr) NtEnumerateKey
@ stdcall ZwEnumerateValueKey(long long long ptr long ptr) NtEnumerateValueKey @ stdcall ZwEnumerateValueKey(long long long ptr long ptr) NtEnumerateValueKey
@ stub ZwExtendSection @ stub ZwExtendSection
@ stub ZwFlushBuffersFile @ stdcall ZwFlushBuffersFile(long ptr) NtFlushBuffersFile
@ stub ZwFlushInstructionCache @ stub ZwFlushInstructionCache
@ stdcall ZwFlushKey(long) NtFlushKey @ stdcall ZwFlushKey(long) NtFlushKey
@ stdcall ZwFlushVirtualMemory(long ptr ptr long) NtFlushVirtualMemory @ stdcall ZwFlushVirtualMemory(long ptr ptr long) NtFlushVirtualMemory
......
...@@ -2361,14 +2361,17 @@ UINT WINAPI SetHandleCount( UINT count ) ...@@ -2361,14 +2361,17 @@ UINT WINAPI SetHandleCount( UINT count )
*/ */
BOOL WINAPI FlushFileBuffers( HANDLE hFile ) BOOL WINAPI FlushFileBuffers( HANDLE hFile )
{ {
BOOL ret; NTSTATUS nts;
SERVER_START_REQ( flush_file ) IO_STATUS_BLOCK ioblk;
nts = NtFlushBuffersFile( hFile, &ioblk );
if (nts != STATUS_SUCCESS)
{ {
req->handle = hFile; SetLastError( RtlNtStatusToDosError( nts ) );
ret = !wine_server_call_err( req ); return FALSE;
} }
SERVER_END_REQ;
return ret; return TRUE;
} }
......
...@@ -850,6 +850,7 @@ NTSTATUS WINAPI NtDeviceIoControlFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_S ...@@ -850,6 +850,7 @@ NTSTATUS WINAPI NtDeviceIoControlFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_S
NTSTATUS WINAPI NtDuplicateObject(HANDLE,HANDLE,HANDLE,PHANDLE,ACCESS_MASK,ULONG,ULONG); NTSTATUS WINAPI NtDuplicateObject(HANDLE,HANDLE,HANDLE,PHANDLE,ACCESS_MASK,ULONG,ULONG);
NTSTATUS WINAPI NtEnumerateKey(HKEY,ULONG,KEY_INFORMATION_CLASS,void *,DWORD,DWORD *); NTSTATUS WINAPI NtEnumerateKey(HKEY,ULONG,KEY_INFORMATION_CLASS,void *,DWORD,DWORD *);
NTSTATUS WINAPI NtEnumerateValueKey(HKEY,ULONG,KEY_VALUE_INFORMATION_CLASS,PVOID,ULONG,PULONG); NTSTATUS WINAPI NtEnumerateValueKey(HKEY,ULONG,KEY_VALUE_INFORMATION_CLASS,PVOID,ULONG,PULONG);
NTSTATUS WINAPI NtFlushBuffersFile(HANDLE,IO_STATUS_BLOCK*);
NTSTATUS WINAPI NtFlushKey(HKEY); NTSTATUS WINAPI NtFlushKey(HKEY);
NTSTATUS WINAPI NtFlushVirtualMemory(HANDLE,LPCVOID*,ULONG*,ULONG); NTSTATUS WINAPI NtFlushVirtualMemory(HANDLE,LPCVOID*,ULONG*,ULONG);
NTSTATUS WINAPI NtFreeVirtualMemory(HANDLE,PVOID*,ULONG*,ULONG); NTSTATUS WINAPI NtFreeVirtualMemory(HANDLE,PVOID*,ULONG*,ULONG);
......
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