Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
84259840
Commit
84259840
authored
May 19, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refuse to load if 16-bit support is missing.
parent
dea3a11c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
dosexe.h
dlls/winedos/dosexe.h
+1
-1
dosmem.c
dlls/winedos/dosmem.c
+3
-2
dosvm.c
dlls/winedos/dosvm.c
+1
-1
No files found.
dlls/winedos/dosexe.h
View file @
84259840
...
...
@@ -288,7 +288,7 @@ extern void WINAPI DOSVM_ASPIHandler(CONTEXT86*);
extern
DOSCONF
*
DOSCONF_GetConfig
(
void
);
/* dosmem.c */
extern
void
DOSMEM_InitDosMemory
(
void
);
extern
BOOL
DOSMEM_InitDosMemory
(
void
);
extern
BOOL
DOSMEM_MapDosLayout
(
void
);
extern
WORD
DOSMEM_AllocSelector
(
WORD
);
/* FIXME: to be removed */
extern
LPVOID
DOSMEM_AllocBlock
(
UINT
size
,
WORD
*
p
);
...
...
dlls/winedos/dosmem.c
View file @
84259840
...
...
@@ -489,14 +489,14 @@ static void DOSMEM_InitMemory(char* addr)
*
* When WineDOS is loaded, initializes the current DOS memory layout.
*/
void
DOSMEM_InitDosMemory
(
void
)
BOOL
DOSMEM_InitDosMemory
(
void
)
{
HMODULE16
hModule
;
unsigned
short
sel
;
LDT_ENTRY
entry
;
DWORD
reserve
;
hModule
=
GetModuleHandle16
(
"KERNEL"
)
;
if
(
!
(
hModule
=
GetModuleHandle16
(
"KERNEL"
)))
return
FALSE
;
/* KERNEL.194: __F000H */
sel
=
LOWORD
(
GetProcAddress16
(
hModule
,
(
LPCSTR
)(
ULONG_PTR
)
194
));
wine_ldt_get_entry
(
sel
,
&
entry
);
...
...
@@ -528,6 +528,7 @@ void DOSMEM_InitDosMemory(void)
* Set DOS memory base and initialize conventional memory.
*/
DOSMEM_InitMemory
(
DOSMEM_dosmem
+
reserve
);
return
TRUE
;
}
/******************************************************************
...
...
dlls/winedos/dosvm.c
View file @
84259840
...
...
@@ -703,7 +703,7 @@ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved )
if
(
fdwReason
==
DLL_PROCESS_ATTACH
)
{
DisableThreadLibraryCalls
(
hinstDLL
);
DOSMEM_InitDosMemory
()
;
if
(
!
DOSMEM_InitDosMemory
())
return
FALSE
;
DOSVM_InitSegments
();
event_notifier
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
);
...
...
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