Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
13cec5eb
Commit
13cec5eb
authored
Jan 01, 1999
by
Richard A Lough
Committed by
Alexandre Julliard
Jan 01, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put return value of LocalAlloc in CX too.
parent
3c77035a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
kernel.spec
if1632/kernel.spec
+1
-1
local.c
memory/local.c
+13
-0
No files found.
if1632/kernel.spec
View file @
13cec5eb
...
...
@@ -9,7 +9,7 @@ file krnl386.exe
2 stub ExitKernel
3 pascal GetVersion() GetVersion16
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
7 pascal16 LocalFree(word) LocalFree16
8 pascal LocalLock(word) LocalLock16
...
...
memory/local.c
View file @
13cec5eb
...
...
@@ -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)
*/
HLOCAL16
WINAPI
LocalReAlloc16
(
HLOCAL16
handle
,
WORD
size
,
UINT16
flags
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment