GlobalFix16 is supposed to return selector to the memory area.
This commit is contained in:
parent
0b597bce93
commit
85a7ff4090
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue