Commit 13cec5eb authored by Richard A Lough's avatar Richard A Lough Committed by Alexandre Julliard

Put return value of LocalAlloc in CX too.

parent 3c77035a
...@@ -9,7 +9,7 @@ file krnl386.exe ...@@ -9,7 +9,7 @@ file krnl386.exe
2 stub ExitKernel 2 stub ExitKernel
3 pascal GetVersion() GetVersion16 3 pascal GetVersion() GetVersion16
4 pascal16 LocalInit(word word word) LocalInit 4 pascal16 LocalInit(word word word) LocalInit
5 pascal16 LocalAlloc(word word) LocalAlloc16 5 register LocalAlloc(word word) WIN16_LocalAlloc
6 pascal16 LocalReAlloc(word word word) LocalReAlloc16 6 pascal16 LocalReAlloc(word word word) LocalReAlloc16
7 pascal16 LocalFree(word) LocalFree16 7 pascal16 LocalFree(word) LocalFree16
8 pascal LocalLock(word) LocalLock16 8 pascal LocalLock(word) LocalLock16
......
...@@ -1522,6 +1522,19 @@ HLOCAL16 WINAPI LocalAlloc16( UINT16 flags, WORD size ) ...@@ -1522,6 +1522,19 @@ HLOCAL16 WINAPI LocalAlloc16( UINT16 flags, WORD size )
/*********************************************************************** /***********************************************************************
* WIN16_LocalAlloc
*/
void WINAPI WIN16_LocalAlloc( CONTEXT *context )
{
WORD *stack = PTR_SEG_OFF_TO_LIN(SS_reg(context), SP_reg(context));
UINT16 flags = (UINT16)stack[3];
WORD size = (WORD)stack[2];
TRACE(local,"WIN16LocalAlloc: %04x %d \n", flags, size);
AX_reg(context) = CX_reg(context) = LOCAL_Alloc( DS_reg(context), flags, size );
}
/***********************************************************************
* LocalReAlloc16 (KERNEL.6) * LocalReAlloc16 (KERNEL.6)
*/ */
HLOCAL16 WINAPI LocalReAlloc16( HLOCAL16 handle, WORD size, UINT16 flags ) HLOCAL16 WINAPI LocalReAlloc16( HLOCAL16 handle, WORD size, UINT16 flags )
......
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