Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b6338878
Commit
b6338878
authored
Apr 22, 2003
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved kernel32.FlushFileBuffers to ntdll.NtFlushBuffersFile.
parent
a03e66dc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
9 deletions
+28
-9
file.c
dlls/ntdll/file.c
+15
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+3
-3
file.c
files/file.c
+9
-6
winternl.h
include/winternl.h
+1
-0
No files found.
dlls/ntdll/file.c
View file @
b6338878
...
...
@@ -491,3 +491,18 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile (
IoStatusBlock
->
Information
=
len
;
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
;
}
dlls/ntdll/ntdll.spec
View file @
b6338878
...
...
@@ -107,7 +107,7 @@
@ stdcall NtEnumerateKey (long long long long long long)
@ stdcall NtEnumerateValueKey (long long long long long long)
@ stub NtExtendSection
@ st
ub NtFlushBuffersFile
@ st
dcall NtFlushBuffersFile(long ptr)
@ stub NtFlushInstructionCache
@ stdcall NtFlushKey(long)
@ stdcall NtFlushVirtualMemory(long ptr ptr long)
...
...
@@ -441,7 +441,7 @@
@ stdcall RtlInt64ToUnicodeString(long long long ptr)
@ stdcall RtlIntegerToChar(long long long ptr)
@ stdcall RtlIntegerToUnicodeString(long long ptr)
@ stdcall RtlIsDosDeviceName_U(wstr)
RtlIsDosDeviceName_U
@ stdcall RtlIsDosDeviceName_U(wstr)
@ stub RtlIsGenericTableEmpty
@ stdcall RtlIsNameLegalDOS8Dot3(ptr ptr ptr)
@ stdcall RtlIsTextUnicode(ptr long ptr)
...
...
@@ -634,7 +634,7 @@
@ stdcall ZwEnumerateKey(long long long ptr long ptr) NtEnumerateKey
@ stdcall ZwEnumerateValueKey(long long long ptr long ptr) NtEnumerateValueKey
@ stub ZwExtendSection
@ st
ub Zw
FlushBuffersFile
@ st
dcall ZwFlushBuffersFile(long ptr) Nt
FlushBuffersFile
@ stub ZwFlushInstructionCache
@ stdcall ZwFlushKey(long) NtFlushKey
@ stdcall ZwFlushVirtualMemory(long ptr ptr long) NtFlushVirtualMemory
...
...
files/file.c
View file @
b6338878
...
...
@@ -2361,14 +2361,17 @@ UINT WINAPI SetHandleCount( UINT count )
*/
BOOL
WINAPI
FlushFileBuffers
(
HANDLE
hFile
)
{
BOOL
ret
;
SERVER_START_REQ
(
flush_file
)
NTSTATUS
nts
;
IO_STATUS_BLOCK
ioblk
;
nts
=
NtFlushBuffersFile
(
hFile
,
&
ioblk
);
if
(
nts
!=
STATUS_SUCCESS
)
{
req
->
handle
=
hFile
;
ret
=
!
wine_server_call_err
(
req
)
;
SetLastError
(
RtlNtStatusToDosError
(
nts
)
)
;
ret
urn
FALSE
;
}
SERVER_END_REQ
;
return
ret
;
return
TRUE
;
}
...
...
include/winternl.h
View file @
b6338878
...
...
@@ -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
NtEnumerateKey
(
HKEY
,
ULONG
,
KEY_INFORMATION_CLASS
,
void
*
,
DWORD
,
DWORD
*
);
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
NtFlushVirtualMemory
(
HANDLE
,
LPCVOID
*
,
ULONG
*
,
ULONG
);
NTSTATUS
WINAPI
NtFreeVirtualMemory
(
HANDLE
,
PVOID
*
,
ULONG
*
,
ULONG
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment