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
e3d8853b
Commit
e3d8853b
authored
Aug 04, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved FlushInstructionCache to ntdll.
parent
7bf7bce0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
4 deletions
+24
-4
process.c
dlls/kernel/process.c
+4
-2
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-2
process.c
dlls/ntdll/process.c
+17
-0
winternl.h
include/winternl.h
+1
-0
No files found.
dlls/kernel/process.c
View file @
e3d8853b
...
...
@@ -2740,9 +2740,11 @@ BOOL WINAPI WriteProcessMemory( HANDLE process, LPVOID addr, LPCVOID buffer, SIZ
*/
BOOL
WINAPI
FlushInstructionCache
(
HANDLE
hProcess
,
LPCVOID
lpBaseAddress
,
SIZE_T
dwSize
)
{
NTSTATUS
status
;
if
(
GetVersion
()
&
0x80000000
)
return
TRUE
;
/* not NT, always TRUE */
FIXME
(
"(%p,%p,0x%08lx): stub
\n
"
,
hProcess
,
lpBaseAddress
,
dwSize
);
return
TRUE
;
status
=
NtFlushInstructionCache
(
hProcess
,
lpBaseAddress
,
dwSize
);
if
(
status
)
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
!
status
;
}
...
...
dlls/ntdll/ntdll.spec
View file @
e3d8853b
...
...
@@ -115,7 +115,7 @@
@ stdcall NtEnumerateValueKey (long long long long long long)
@ stub NtExtendSection
@ stdcall NtFlushBuffersFile(long ptr)
@ st
ub NtFlushInstructionCache
@ st
dcall NtFlushInstructionCache(long ptr long)
@ stdcall NtFlushKey(long)
@ stdcall NtFlushVirtualMemory(long ptr ptr long)
@ stub NtFlushWriteBuffer
...
...
@@ -698,7 +698,7 @@
@ stdcall ZwEnumerateValueKey(long long long ptr long ptr) NtEnumerateValueKey
@ stub ZwExtendSection
@ stdcall ZwFlushBuffersFile(long ptr) NtFlushBuffersFile
@ st
ub Zw
FlushInstructionCache
@ st
dcall ZwFlushInstructionCache(long ptr long) Nt
FlushInstructionCache
@ stdcall ZwFlushKey(long) NtFlushKey
@ stdcall ZwFlushVirtualMemory(long ptr ptr long) NtFlushVirtualMemory
@ stub ZwFlushWriteBuffer
...
...
dlls/ntdll/process.c
View file @
e3d8853b
...
...
@@ -154,3 +154,20 @@ NTSTATUS WINAPI NtSetInformationProcess(
ProcessHandle
,
ProcessInformationClass
,
ProcessInformation
,
ProcessInformationLength
);
return
0
;
}
/******************************************************************************
* NtFlushInstructionCache [NTDLL.@]
* ZwFlushInstructionCache [NTDLL.@]
*/
NTSTATUS
WINAPI
NtFlushInstructionCache
(
IN
HANDLE
ProcessHandle
,
IN
LPCVOID
BaseAddress
,
IN
ULONG
Size
)
{
#ifdef __i386__
TRACE
(
"%p %p %ld - no-op on x86
\n
"
,
ProcessHandle
,
BaseAddress
,
Size
);
#else
FIXME
(
"%p %p %ld
\n
"
,
ProcessHandle
,
BaseAddress
,
Size
);
#endif
return
STATUS_SUCCESS
;
}
include/winternl.h
View file @
e3d8853b
...
...
@@ -1242,6 +1242,7 @@ NTSTATUS WINAPI NtDuplicateObject(HANDLE,HANDLE,HANDLE,PHANDLE,ACCESS_MASK,ULON
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
NtFlushInstructionCache
(
HANDLE
,
LPCVOID
,
ULONG
);
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