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
ebdb9dc7
Commit
ebdb9dc7
authored
May 07, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up local heap initialisation.
parent
680919c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
26 deletions
+6
-26
gdi_main.c
dlls/gdi/gdi_main.c
+3
-13
user_main.c
dlls/user/user_main.c
+3
-13
No files found.
dlls/gdi/gdi_main.c
View file @
ebdb9dc7
...
...
@@ -8,7 +8,6 @@
#include "gdi.h"
#include "global.h"
#include "module.h"
#include "psdrv.h"
#include "tweak.h"
#include "win16drv.h"
...
...
@@ -19,22 +18,13 @@
*/
BOOL
WINAPI
MAIN_GdiInit
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
NE_MODULE
*
pModul
e
;
HINSTANCE16
instanc
e
;
if
(
GDI_HeapSel
)
return
TRUE
;
/* Create GDI heap */
pModule
=
NE_GetPtr
(
GetModuleHandle16
(
"GDI"
)
);
if
(
pModule
)
{
GDI_HeapSel
=
GlobalHandleToSel16
(
(
NE_SEG_TABLE
(
pModule
)
+
pModule
->
dgroup
-
1
)
->
hSeg
);
}
else
{
GDI_HeapSel
=
GlobalAlloc16
(
GMEM_FIXED
,
GDI_HEAP_SIZE
);
LocalInit16
(
GDI_HeapSel
,
0
,
GDI_HEAP_SIZE
-
1
);
}
if
((
instance
=
LoadLibrary16
(
"GDI.EXE"
))
<
32
)
return
FALSE
;
GDI_HeapSel
=
GlobalHandleToSel16
(
instance
);
if
(
!
TWEAK_Init
())
return
FALSE
;
...
...
dlls/user/user_main.c
View file @
ebdb9dc7
...
...
@@ -15,7 +15,6 @@
#include "keyboard.h"
#include "menu.h"
#include "message.h"
#include "module.h"
#include "mouse.h"
#include "queue.h"
#include "spy.h"
...
...
@@ -29,23 +28,14 @@
*/
BOOL
WINAPI
USER_Init
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
NE_MODULE
*
pModul
e
;
HINSTANCE16
instanc
e
;
int
queueSize
;
if
(
USER_HeapSel
)
return
TRUE
;
/* Create USER heap */
pModule
=
NE_GetPtr
(
GetModuleHandle16
(
"USER"
)
);
if
(
pModule
)
{
USER_HeapSel
=
GlobalHandleToSel16
(
(
NE_SEG_TABLE
(
pModule
)
+
pModule
->
dgroup
-
1
)
->
hSeg
);
}
else
{
USER_HeapSel
=
GlobalAlloc16
(
GMEM_FIXED
,
0x10000
);
LocalInit16
(
USER_HeapSel
,
0
,
0xffff
);
}
if
((
instance
=
LoadLibrary16
(
"USER.EXE"
))
<
32
)
return
FALSE
;
USER_HeapSel
=
GlobalHandleToSel16
(
instance
);
/* Global atom table initialisation */
if
(
!
ATOM_Init
(
USER_HeapSel
))
return
FALSE
;
...
...
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