Commit 85a7ff40 authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

GlobalFix16 is supposed to return selector to the memory area.

parent 0b597bce
......@@ -8234,7 +8234,7 @@ UINT32 WINAPI GlobalGetAtomName32W(ATOM,LPWSTR,INT32);
DWORD WINAPI GlobalHandle16(WORD);
HGLOBAL32 WINAPI GlobalHandle32(LPCVOID);
#define GlobalHandle WINELIB_NAME(GlobalHandle)
VOID WINAPI GlobalFix16(HGLOBAL16);
WORD WINAPI GlobalFix16(HGLOBAL16);
VOID WINAPI GlobalFix32(HGLOBAL32);
#define GlobalFix WINELIB_NAME(GlobalFix)
LPVOID WINAPI GlobalLock16(HGLOBAL16);
......
......@@ -808,14 +808,16 @@ WORD WINAPI GlobalPageUnlock( HGLOBAL16 handle )
/***********************************************************************
* 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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment