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
4fef2f19
Commit
4fef2f19
authored
Aug 09, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed obsolete SHMDATA parameter in GLOBAL_CreateBlock.
parent
044d2519
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
25 deletions
+12
-25
kernel_main.c
dlls/kernel/kernel_main.c
+1
-1
builtin.c
if1632/builtin.c
+2
-4
global.h
include/global.h
+1
-9
global.c
memory/global.c
+4
-6
dosmem.c
msdos/dosmem.c
+3
-4
metafile.c
objects/metafile.c
+1
-1
No files found.
dlls/kernel/kernel_main.c
View file @
4fef2f19
...
...
@@ -53,7 +53,7 @@ static BOOL process_attach(void)
#define SET_ENTRY_POINT( num, addr ) \
NE_SetEntryPoint( hModule, (num), GLOBAL_CreateBlock( GMEM_FIXED, \
DOSMEM_MapDosToLinear(addr), 0x10000, hModule, \
FALSE, FALSE, FALSE
, NULL
))
FALSE, FALSE, FALSE ))
SET_ENTRY_POINT
(
183
,
0x00000
);
/* KERNEL.183: __0000H */
SET_ENTRY_POINT
(
174
,
0xa0000
);
/* KERNEL.174: __A000H */
...
...
if1632/builtin.c
View file @
4fef2f19
...
...
@@ -18,7 +18,6 @@
#include "module.h"
#include "miscemu.h"
#include "stackframe.h"
#include "process.h"
#include "task.h"
#include "debugtools.h"
#include "toolhelp.h"
...
...
@@ -58,7 +57,7 @@ static HMODULE16 BUILTIN_DoLoadModule16( const BUILTIN16_DESCRIPTOR *descr )
{
hModule
=
GLOBAL_CreateBlock
(
GMEM_MOVEABLE
,
descr
->
module_start
,
descr
->
module_size
,
0
,
FALSE
,
FALSE
,
FALSE
,
NULL
);
FALSE
,
FALSE
,
FALSE
);
if
(
!
hModule
)
return
0
;
FarSetOwner16
(
hModule
,
hModule
);
...
...
@@ -104,8 +103,7 @@ static HMODULE16 BUILTIN_DoLoadModule16( const BUILTIN16_DESCRIPTOR *descr )
pSegTable
=
NE_SEG_TABLE
(
pModule
);
pSegTable
->
hSeg
=
GLOBAL_CreateBlock
(
GMEM_FIXED
,
descr
->
code_start
,
pSegTable
->
minsize
,
hModule
,
TRUE
,
TRUE
,
FALSE
,
NULL
);
pSegTable
->
minsize
,
hModule
,
TRUE
,
TRUE
,
FALSE
);
if
(
!
pSegTable
->
hSeg
)
return
0
;
pSegTable
++
;
...
...
include/global.h
View file @
4fef2f19
...
...
@@ -9,18 +9,10 @@
#include "windef.h"
typedef
struct
{
HGLOBAL16
handle
;
WORD
sel
;
int
shmid
;
}
SHMDATA
;
/* memory/global.c */
extern
HGLOBAL16
GLOBAL_CreateBlock
(
UINT16
flags
,
const
void
*
ptr
,
DWORD
size
,
HGLOBAL16
hOwner
,
BOOL16
isCode
,
BOOL16
is32Bit
,
BOOL16
isReadOnly
,
SHMDATA
*
shmdata
);
BOOL16
is32Bit
,
BOOL16
isReadOnly
);
extern
BOOL16
GLOBAL_FreeBlock
(
HGLOBAL16
handle
);
extern
BOOL16
GLOBAL_MoveBlock
(
HGLOBAL16
handle
,
const
void
*
ptr
,
DWORD
size
);
extern
HGLOBAL16
GLOBAL_Alloc
(
WORD
flags
,
DWORD
size
,
HGLOBAL16
hOwner
,
...
...
memory/global.c
View file @
4fef2f19
...
...
@@ -96,8 +96,7 @@ void debug_handles(void)
*/
HGLOBAL16
GLOBAL_CreateBlock
(
WORD
flags
,
const
void
*
ptr
,
DWORD
size
,
HGLOBAL16
hOwner
,
BOOL16
isCode
,
BOOL16
is32Bit
,
BOOL16
isReadOnly
,
SHMDATA
*
shmdata
)
BOOL16
is32Bit
,
BOOL16
isReadOnly
)
{
WORD
sel
,
selcount
;
GLOBALARENA
*
pArena
;
...
...
@@ -193,14 +192,13 @@ HGLOBAL16 GLOBAL_Alloc( UINT16 flags, DWORD size, HGLOBAL16 hOwner,
{
void
*
ptr
;
HGLOBAL16
handle
;
SHMDATA
shmdata
;
TRACE
(
"%ld flags=%04x
\n
"
,
size
,
flags
);
/* If size is 0, create a discarded block */
if
(
size
==
0
)
return
GLOBAL_CreateBlock
(
flags
,
NULL
,
1
,
hOwner
,
isCode
,
is32Bit
,
isReadOnly
,
NULL
);
is32Bit
,
isReadOnly
);
/* Fixup the size */
...
...
@@ -215,7 +213,7 @@ HGLOBAL16 GLOBAL_Alloc( UINT16 flags, DWORD size, HGLOBAL16 hOwner,
/* Allocate the selector(s) */
handle
=
GLOBAL_CreateBlock
(
flags
,
ptr
,
size
,
hOwner
,
isCode
,
is32Bit
,
isReadOnly
,
&
shmdata
);
isCode
,
is32Bit
,
isReadOnly
);
if
(
!
handle
)
{
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
...
...
@@ -685,7 +683,7 @@ DWORD WINAPI GlobalDOSAlloc16(
WORD
wSelector
;
wSelector
=
GLOBAL_CreateBlock
(
GMEM_FIXED
,
lpBlock
,
size
,
hModule
,
0
,
0
,
0
,
NULL
);
hModule
,
0
,
0
,
0
);
return
MAKELONG
(
wSelector
,
uParagraph
);
}
return
0
;
...
...
msdos/dosmem.c
View file @
4fef2f19
...
...
@@ -413,9 +413,9 @@ BOOL DOSMEM_Init(BOOL dos_init)
return
FALSE
;
}
DOSMEM_BiosDataSeg
=
GLOBAL_CreateBlock
(
GMEM_FIXED
,
DOSMEM_dosmem
+
0x400
,
0x100
,
0
,
FALSE
,
FALSE
,
FALSE
,
NULL
);
0x100
,
0
,
FALSE
,
FALSE
,
FALSE
);
DOSMEM_BiosSysSeg
=
GLOBAL_CreateBlock
(
GMEM_FIXED
,
DOSMEM_dosmem
+
0xf0000
,
0x10000
,
0
,
FALSE
,
FALSE
,
FALSE
,
NULL
);
0x10000
,
0
,
FALSE
,
FALSE
,
FALSE
);
base
=
DOSMEM_dosmem
;
do_init
=
TRUE
;
}
...
...
@@ -734,8 +734,7 @@ WORD DOSMEM_AllocSelector(WORD realsel)
sel
=
GLOBAL_CreateBlock
(
GMEM_FIXED
,
DOSMEM_dosmem
+
realsel
*
16
,
0x10000
,
hModule
,
FALSE
,
FALSE
,
FALSE
,
NULL
);
hModule
,
FALSE
,
FALSE
,
FALSE
);
TRACE_
(
selector
)(
"(0x%04x) returns 0x%04x.
\n
"
,
realsel
,
sel
);
return
sel
;
}
...
...
objects/metafile.c
View file @
4fef2f19
...
...
@@ -98,7 +98,7 @@ HMETAFILE16 MF_Create_HMETAFILE16(METAHEADER *mh)
size
=
sizeof
(
METAHEADER
)
+
sizeof
(
METAHEADERDISK
);
hmf
=
GLOBAL_CreateBlock
(
GMEM_MOVEABLE
,
mh
,
mh
->
mtSize
*
sizeof
(
WORD
),
GetCurrentPDB16
(),
FALSE
,
FALSE
,
FALSE
,
NULL
);
GetCurrentPDB16
(),
FALSE
,
FALSE
,
FALSE
);
return
hmf
;
}
...
...
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