https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1944d7b71b55ac7319969…
commit 1944d7b71b55ac731996936fc3b56de662b4b4df
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
[KERNEL32] HeapCreateTagsW(): Sync' types and add annotations
See RtlCreateTagHeap().
---
dll/win32/kernel32/client/heapmem.c | 8 ++++----
dll/win32/kernel32/kernel32.spec | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dll/win32/kernel32/client/heapmem.c b/dll/win32/kernel32/client/heapmem.c
index 0ef199e6fb0..daae8028162 100644
--- a/dll/win32/kernel32/client/heapmem.c
+++ b/dll/win32/kernel32/client/heapmem.c
@@ -166,10 +166,10 @@ HeapValidate(HANDLE hHeap,
*/
DWORD
WINAPI
-HeapCreateTagsW(HANDLE hHeap,
- DWORD dwFlags,
- PWSTR lpTagName,
- PWSTR lpTagSubName)
+HeapCreateTagsW(_In_ HANDLE hHeap,
+ _In_ DWORD dwFlags,
+ _In_opt_ PWSTR lpTagName,
+ _In_ PWSTR lpTagSubName)
{
/* Call the RTL API */
return RtlCreateTagHeap(hHeap,
diff --git a/dll/win32/kernel32/kernel32.spec b/dll/win32/kernel32/kernel32.spec
index 1b8dd416be9..14050c9447d 100644
--- a/dll/win32/kernel32/kernel32.spec
+++ b/dll/win32/kernel32/kernel32.spec
@@ -688,7 +688,7 @@
@ stdcall HeapAlloc(long long long) ntdll.RtlAllocateHeap
@ stdcall HeapCompact(long long)
@ stdcall HeapCreate(long long long)
-@ stdcall -version=0x351-0x502 HeapCreateTagsW(long long wstr wstr)
+@ stdcall -version=0x351-0x502 HeapCreateTagsW(ptr long wstr wstr)
@ stdcall HeapDestroy(long)
@ stdcall -version=0x351-0x502 HeapExtend(long long ptr long)
@ stdcall HeapFree(long long long) ntdll.RtlFreeHeap