From 073dd7dde23608bb436db2d2ee71fa6c45c82d76 Mon Sep 17 00:00:00 2001 From: Peter Oberndorfer Date: Wed, 26 Sep 2007 20:50:28 +0200 Subject: [PATCH] ntdll: NtAreMappedFilesTheSame semi stub. --- dlls/ntdll/ntdll.spec | 4 ++-- dlls/ntdll/virtual.c | 12 ++++++++++++ include/winternl.h | 1 + 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec index 1c4a39d8b5c..30c6ab3b5eb 100644 --- a/dlls/ntdll/ntdll.spec +++ b/dlls/ntdll/ntdll.spec @@ -104,7 +104,7 @@ # @ stub NtAllocateUserPhysicalPages @ stdcall NtAllocateUuids(ptr ptr ptr) @ stdcall NtAllocateVirtualMemory(long ptr ptr ptr long long) -@ stub NtAreMappedFilesTheSame +@ stdcall NtAreMappedFilesTheSame(ptr ptr) # @ stub NtAssignProcessToJobObject @ stub NtCallbackReturn # @ stub NtCancelDeviceWakeupRequest @@ -948,7 +948,7 @@ # @ stub ZwAllocateUserPhysicalPages @ stdcall ZwAllocateUuids(ptr ptr ptr) NtAllocateUuids @ stdcall ZwAllocateVirtualMemory(long ptr ptr ptr long long) NtAllocateVirtualMemory -@ stub ZwAreMappedFilesTheSame +@ stdcall ZwAreMappedFilesTheSame(ptr ptr) NtAreMappedFilesTheSame # @ stub ZwAssignProcessToJobObject @ stub ZwCallbackReturn # @ stub ZwCancelDeviceWakeupRequest diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c index 7f42f59b8ba..14ff66599b3 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -2213,3 +2213,15 @@ NTSTATUS WINAPI NtWriteVirtualMemory( HANDLE process, void *addr, const void *bu if (bytes_written) *bytes_written = size; return status; } + + +/*********************************************************************** + * NtAreMappedFilesTheSame (NTDLL.@) + * ZwAreMappedFilesTheSame (NTDLL.@) + */ +NTSTATUS WINAPI NtAreMappedFilesTheSame(PVOID addr1, PVOID addr2) +{ + TRACE("%p %p\n", addr1, addr2); + + return STATUS_NOT_SAME_DEVICE; +} diff --git a/include/winternl.h b/include/winternl.h index 88c36b1cf44..df3a48962e7 100644 --- a/include/winternl.h +++ b/include/winternl.h @@ -1775,6 +1775,7 @@ NTSTATUS WINAPI NtAlertThread(HANDLE ThreadHandle); NTSTATUS WINAPI NtAllocateLocallyUniqueId(PLUID lpLuid); NTSTATUS WINAPI NtAllocateUuids(PULARGE_INTEGER,PULONG,PULONG); NTSTATUS WINAPI NtAllocateVirtualMemory(HANDLE,PVOID*,ULONG,SIZE_T*,ULONG,ULONG); +NTSTATUS WINAPI NtAreMappedFilesTheSame(PVOID,PVOID); NTSTATUS WINAPI NtCallbackReturn(PVOID,ULONG,NTSTATUS); NTSTATUS WINAPI NtCancelIoFile(HANDLE,PIO_STATUS_BLOCK); NTSTATUS WINAPI NtCancelTimer(HANDLE, BOOLEAN*);