GlobalFix16 is supposed to return selector to the memory area.
diff --git a/memory/global.c b/memory/global.c
index 799eb9f..80411ce 100644
--- a/memory/global.c
+++ b/memory/global.c
@@ -808,14 +808,16 @@
/***********************************************************************
* GlobalFix16 (KERNEL.197)
*/
-void WINAPI GlobalFix16( HGLOBAL16 handle )
+WORD WINAPI GlobalFix16( HGLOBAL16 handle )
{
TRACE(global, "%04x\n", handle );
if (!VALID_HANDLE(handle)) {
WARN(global,"Invalid handle 0x%04x passed to GlobalFix16!\n",handle);
- return;
+ return 0;
}
GET_ARENA_PTR(handle)->lockCount++;
+
+ return GlobalHandleToSel(handle);
}