https://git.reactos.org/?p=reactos.git;a=commitdiff;h=25bff3a1e0218b7d9e92c…
commit 25bff3a1e0218b7d9e92c4ea9ade40a5f855f02a
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Mon May 24 08:56:17 2021 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Thu Feb 3 20:21:40 2022 +0100
[NDK][NTDLL][RTL] RtlCreateTagHeap(): Fix types and annotations
According to
https://processhacker.sourceforge.io/doc/ntrtl_8h.html
---
dll/ntdll/def/ntdll.spec | 2 +-
sdk/include/ndk/rtlfuncs.h | 2 +-
sdk/lib/rtl/heap.c | 8 ++++----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dll/ntdll/def/ntdll.spec b/dll/ntdll/def/ntdll.spec
index 3db2bf08b82..363ed834289 100644
--- a/dll/ntdll/def/ntdll.spec
+++ b/dll/ntdll/def/ntdll.spec
@@ -728,7 +728,7 @@
@ stdcall RtlCreateSecurityDescriptor(ptr long)
@ stdcall RtlCreateServiceSid(ptr ptr ptr) # Exists in Windows 2003 SP 2
@ stdcall RtlCreateSystemVolumeInformationFolder(ptr)
-@ stdcall RtlCreateTagHeap(ptr long str str)
+@ stdcall RtlCreateTagHeap(ptr long wstr wstr)
@ stdcall RtlCreateTimer(ptr ptr ptr ptr long long long)
@ stdcall RtlCreateTimerQueue(ptr)
@ stdcall RtlCreateUnicodeString(ptr wstr)
diff --git a/sdk/include/ndk/rtlfuncs.h b/sdk/include/ndk/rtlfuncs.h
index a99ba39fa0e..ffc3bb1bcae 100644
--- a/sdk/include/ndk/rtlfuncs.h
+++ b/sdk/include/ndk/rtlfuncs.h
@@ -861,7 +861,7 @@ NTAPI
RtlCreateTagHeap(
_In_ HANDLE HeapHandle,
_In_ ULONG Flags,
- _In_ PWSTR TagName,
+ _In_opt_ PWSTR TagName,
_In_ PWSTR TagSubName
);
diff --git a/sdk/lib/rtl/heap.c b/sdk/lib/rtl/heap.c
index 019a4f80216..847051df44c 100644
--- a/sdk/lib/rtl/heap.c
+++ b/sdk/lib/rtl/heap.c
@@ -4028,10 +4028,10 @@ RtlExtendHeap(IN HANDLE Heap,
ULONG
NTAPI
-RtlCreateTagHeap(IN HANDLE HeapHandle,
- IN ULONG Flags,
- IN PWSTR TagName,
- IN PWSTR TagSubName)
+RtlCreateTagHeap(_In_ HANDLE HeapHandle,
+ _In_ ULONG Flags,
+ _In_opt_ PWSTR TagName,
+ _In_ PWSTR TagSubName)
{
/* TODO */
UNIMPLEMENTED;