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
3967b091
Commit
3967b091
authored
Sep 20, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
Sep 20, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make CallTo16 return stub segment owned by KERNEL.
parent
a2d5bb39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
relay.c
if1632/relay.c
+3
-2
main.c
loader/main.c
+4
-3
No files found.
if1632/relay.c
View file @
3967b091
...
@@ -40,8 +40,9 @@ BOOL RELAY_Init(void)
...
@@ -40,8 +40,9 @@ BOOL RELAY_Init(void)
extern
DWORD
CALL32_CBClientEx_RetAddr
;
extern
DWORD
CALL32_CBClientEx_RetAddr
;
codesel
=
GLOBAL_CreateBlock
(
GMEM_FIXED
,
(
void
*
)
Call16_Ret_Start
,
codesel
=
GLOBAL_CreateBlock
(
GMEM_FIXED
,
(
void
*
)
Call16_Ret_Start
,
(
int
)
Call16_Ret_End
-
(
int
)
Call16_Ret_Start
,
(
int
)
Call16_Ret_End
-
(
int
)
Call16_Ret_Start
,
0
,
TRUE
,
TRUE
,
FALSE
,
NULL
);
GetModuleHandle16
(
"KERNEL"
),
TRUE
,
TRUE
,
FALSE
,
NULL
);
if
(
!
codesel
)
return
FALSE
;
if
(
!
codesel
)
return
FALSE
;
/* Patch the return addresses for CallTo16 routines */
/* Patch the return addresses for CallTo16 routines */
...
...
loader/main.c
View file @
3967b091
...
@@ -101,9 +101,6 @@ BOOL MAIN_MainInit(void)
...
@@ -101,9 +101,6 @@ BOOL MAIN_MainInit(void)
/* Read DOS config.sys */
/* Read DOS config.sys */
if
(
!
DOSCONF_ReadConfig
())
return
FALSE
;
if
(
!
DOSCONF_ReadConfig
())
return
FALSE
;
/* Initialize relay code */
if
(
!
RELAY_Init
())
return
FALSE
;
return
TRUE
;
return
TRUE
;
}
}
...
@@ -155,6 +152,10 @@ BOOL WINAPI MAIN_KernelInit(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReser
...
@@ -155,6 +152,10 @@ BOOL WINAPI MAIN_KernelInit(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReser
NE_SetEntryPoint
(
hModule
,
194
,
DOSMEM_BiosSysSeg
);
/* KERNEL.194: __F000H */
NE_SetEntryPoint
(
hModule
,
194
,
DOSMEM_BiosSysSeg
);
/* KERNEL.194: __F000H */
#undef SET_ENTRY_POINT
#undef SET_ENTRY_POINT
}
}
/* Initialize relay code */
if
(
!
RELAY_Init
())
return
FALSE
;
return
TRUE
;
return
TRUE
;
}
}
...
...
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