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
d23f506a
Commit
d23f506a
authored
Oct 02, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Oct 02, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduced a new arena flag called GA_DOSMEM to distinguish between
DOSMEM and normal "windows" global mem.
parent
732cf4dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
global.c
memory/global.c
+6
-6
No files found.
memory/global.c
View file @
d23f506a
...
...
@@ -43,6 +43,7 @@ typedef struct
#define GA_DGROUP 0x04
#define GA_DISCARDABLE 0x08
#define GA_IPCSHARE 0x10
/* same as GMEM_DDESHARE */
#define GA_DOSMEM 0x20
/* Arena array */
static
GLOBALARENA
*
pGlobalArena
=
NULL
;
...
...
@@ -310,8 +311,7 @@ HGLOBAL16 WINAPI GlobalReAlloc16(
TRACE
(
"oldsize %08lx
\n
"
,
oldsize
);
if
(
ptr
&&
(
size
==
oldsize
))
return
handle
;
/* Nothing to do */
if
(((
char
*
)
ptr
>=
DOSMEM_MemoryBase
())
&&
((
char
*
)
ptr
<=
DOSMEM_MemoryBase
()
+
0x100000
))
if
(
pArena
->
flags
&
GA_DOSMEM
)
ptr
=
DOSMEM_ResizeBlock
(
ptr
,
size
,
NULL
);
else
ptr
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
ptr
,
size
);
...
...
@@ -681,9 +681,12 @@ DWORD WINAPI GlobalDOSAlloc16(
{
HMODULE16
hModule
=
GetModuleHandle16
(
"KERNEL"
);
WORD
wSelector
;
GLOBALARENA
*
pArena
;
wSelector
=
GLOBAL_CreateBlock
(
GMEM_FIXED
,
lpBlock
,
size
,
hModule
,
0
,
0
,
0
);
pArena
=
GET_ARENA_PTR
(
wSelector
);
pArena
->
flags
|=
GA_DOSMEM
;
return
MAKELONG
(
wSelector
,
uParagraph
);
}
return
0
;
...
...
@@ -904,6 +907,7 @@ BOOL16 WINAPI GlobalEntryHandle16( GLOBALENTRY *pGlobal, HGLOBAL16 hItem )
BOOL16
WINAPI
GlobalEntryModule16
(
GLOBALENTRY
*
pGlobal
,
HMODULE16
hModule
,
WORD
wSeg
)
{
FIXME
(
"(%p, 0x%04x, 0x%04x), stub.
\n
"
,
pGlobal
,
hModule
,
wSeg
);
return
FALSE
;
}
...
...
@@ -1133,10 +1137,6 @@ BOOL WINAPI GlobalUnlock(
* GlobalHandle (KERNEL32.325)
* Returns the handle associated with the specified pointer.
*
* NOTES
* Since there in only one goto, can it be removed and the return
* be put 'inline'?
*
* RETURNS
* Handle: Success
* NULL: Failure
...
...
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