https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4ac263c93ab47aab53015…
commit 4ac263c93ab47aab5301585cbbbd98161962f472
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Tue Nov 1 22:07:36 2022 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Nov 3 02:55:50 2022 +0100
[NTOS][NTDLL][NDK] Nt/ZwCreatePagingFile: Fix parameter names + use SAL; fix NTDLL
spec file.
---
dll/ntdll/def/ntdll.spec | 4 ++--
ntoskrnl/mm/pagefile.c | 12 +++++++-----
sdk/include/ndk/mmfuncs.h | 8 ++++----
3 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/dll/ntdll/def/ntdll.spec b/dll/ntdll/def/ntdll.spec
index 617933ca710..c2b00882c2d 100644
--- a/dll/ntdll/def/ntdll.spec
+++ b/dll/ntdll/def/ntdll.spec
@@ -277,7 +277,7 @@
@ stdcall NtCreateMailslotFile(long long long long long long long long)
@ stdcall NtCreateMutant(ptr long ptr long)
@ stdcall NtCreateNamedPipeFile(ptr long ptr ptr long long long long long long long long
long ptr)
-@ stdcall NtCreatePagingFile(long long long long)
+@ stdcall NtCreatePagingFile(ptr ptr ptr long)
@ stdcall NtCreatePort(ptr ptr long long ptr)
@ stub -version=0x600+ NtCreatePrivateNamespace
@ stdcall NtCreateProcess(ptr long ptr ptr long ptr ptr ptr)
@@ -1438,7 +1438,7 @@
@ stdcall ZwCreateMailslotFile(long long long long long long long long)
@ stdcall ZwCreateMutant(ptr long ptr long)
@ stdcall ZwCreateNamedPipeFile(ptr long ptr ptr long long long long long long long long
long ptr)
-@ stdcall ZwCreatePagingFile(long long long long)
+@ stdcall ZwCreatePagingFile(ptr ptr ptr long)
@ stdcall ZwCreatePort(ptr ptr long long long)
@ stdcall ZwCreateProcess(ptr long ptr ptr long ptr ptr ptr)
@ stdcall ZwCreateProcessEx(ptr long ptr ptr long ptr ptr ptr long)
diff --git a/ntoskrnl/mm/pagefile.c b/ntoskrnl/mm/pagefile.c
index 5b35860862f..1387a38527b 100644
--- a/ntoskrnl/mm/pagefile.c
+++ b/ntoskrnl/mm/pagefile.c
@@ -344,11 +344,13 @@ MmAllocSwapPage(VOID)
return(0);
}
-NTSTATUS NTAPI
-NtCreatePagingFile(IN PUNICODE_STRING FileName,
- IN PLARGE_INTEGER MinimumSize,
- IN PLARGE_INTEGER MaximumSize,
- IN ULONG Reserved)
+NTSTATUS
+NTAPI
+NtCreatePagingFile(
+ _In_ PUNICODE_STRING FileName,
+ _In_ PLARGE_INTEGER MinimumSize,
+ _In_ PLARGE_INTEGER MaximumSize,
+ _In_ ULONG Reserved)
{
NTSTATUS Status;
OBJECT_ATTRIBUTES ObjectAttributes;
diff --git a/sdk/include/ndk/mmfuncs.h b/sdk/include/ndk/mmfuncs.h
index 9872ecb9770..a0be60bac7c 100644
--- a/sdk/include/ndk/mmfuncs.h
+++ b/sdk/include/ndk/mmfuncs.h
@@ -106,8 +106,8 @@ NTSTATUS
NTAPI
NtCreatePagingFile(
_In_ PUNICODE_STRING FileName,
- _In_ PLARGE_INTEGER InitialSize,
- _In_ PLARGE_INTEGER MaxiumSize,
+ _In_ PLARGE_INTEGER MinimumSize,
+ _In_ PLARGE_INTEGER MaximumSize,
_In_ ULONG Reserved
);
@@ -346,8 +346,8 @@ NTSTATUS
NTAPI
ZwCreatePagingFile(
_In_ PUNICODE_STRING FileName,
- _In_ PLARGE_INTEGER InitialSize,
- _In_ PLARGE_INTEGER MaxiumSize,
+ _In_ PLARGE_INTEGER MinimumSize,
+ _In_ PLARGE_INTEGER MaximumSize,
_In_ ULONG Reserved
);