kernelbase: Allocate HLOCAL / HGLOBAL from a static handle table.
commit3c9d2cbaea2039d8ce5d8180ed231b0be6cfa072
authorRémi Bernon <rbernon@codeweavers.com>
Thu, 31 Mar 2022 10:06:41 +0000 (31 12:06 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 31 Mar 2022 20:02:51 +0000 (31 22:02 +0200)
tree9a42fcfc573310d9f440a979055fe075a91aff4f
parent981283a50b5a60c9b3e9d2b4487ba4c38930b9d2
kernelbase: Allocate HLOCAL / HGLOBAL from a static handle table.

Sharing the table pointers through KernelBaseGetGlobalData to check for
handle validity in kernel32, and as native does it.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/kernel32/heap.c
dlls/kernel32/tests/heap.c
dlls/kernelbase/memory.c