Use the proper WOW functions everywhere instead of the K32WOW variant.
diff --git a/dlls/kernel/kernel_main.c b/dlls/kernel/kernel_main.c
index 2fc8fcb..36acafb 100644
--- a/dlls/kernel/kernel_main.c
+++ b/dlls/kernel/kernel_main.c
@@ -38,6 +38,7 @@
#include "winbase.h"
#include "wincon.h"
#include "winternl.h"
+#include "wownt32.h"
#include "wine/winbase16.h"
#include "wine/library.h"
@@ -82,7 +83,7 @@
static void thread_attach(void)
{
/* allocate the 16-bit stack (FIXME: should be done lazily) */
- HGLOBAL16 hstack = K32WOWGlobalAlloc16( GMEM_FIXED, 0x10000 );
+ HGLOBAL16 hstack = WOWGlobalAlloc16( GMEM_FIXED, 0x10000 );
kernel_get_thread_data()->stack_sel = GlobalHandleToSel16( hstack );
NtCurrentTeb()->WOW32Reserved = (void *)MAKESEGPTR( kernel_get_thread_data()->stack_sel,
0x10000 - sizeof(STACK16FRAME) );
@@ -95,7 +96,7 @@
static void thread_detach(void)
{
/* free the 16-bit stack */
- K32WOWGlobalFree16( kernel_get_thread_data()->stack_sel );
+ WOWGlobalFree16( kernel_get_thread_data()->stack_sel );
NtCurrentTeb()->WOW32Reserved = 0;
if (NtCurrentTeb()->Tib.SubSystemTib) TASK_ExitTask();
}