Move 16-bit COMM code to USER dll.
This commit is contained in:
parent
186a79cb92
commit
e4ca13ea82
1069
dlls/kernel/comm.c
1069
dlls/kernel/comm.c
File diff suppressed because it is too large
Load Diff
|
@ -20,7 +20,6 @@
|
||||||
extern void CODEPAGE_Init(void);
|
extern void CODEPAGE_Init(void);
|
||||||
extern BOOL RELAY_Init(void);
|
extern BOOL RELAY_Init(void);
|
||||||
extern BOOL THUNK_Init(void);
|
extern BOOL THUNK_Init(void);
|
||||||
extern void COMM_Init(void);
|
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
@ -77,9 +76,6 @@ static BOOL process_attach(void)
|
||||||
/* Force loading of some dlls */
|
/* Force loading of some dlls */
|
||||||
if (LoadLibrary16( "system" ) < 32) return FALSE;
|
if (LoadLibrary16( "system" ) < 32) return FALSE;
|
||||||
|
|
||||||
/* Initialize communications */
|
|
||||||
COMM_Init();
|
|
||||||
|
|
||||||
/* Read DOS config.sys */
|
/* Read DOS config.sys */
|
||||||
if (!DOSCONF_ReadConfig()) return FALSE;
|
if (!DOSCONF_ReadConfig()) return FALSE;
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ IMPORTS = gdi32 kernel32 ntdll
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
bidi16.c \
|
bidi16.c \
|
||||||
cache.c \
|
cache.c \
|
||||||
|
comm16.c \
|
||||||
dde/client.c \
|
dde/client.c \
|
||||||
dde/ddeml16.c \
|
dde/ddeml16.c \
|
||||||
dde/misc.c \
|
dde/misc.c \
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -35,6 +35,8 @@ WORD USER_HeapSel = 0; /* USER heap selector */
|
||||||
|
|
||||||
static HMODULE graphics_driver;
|
static HMODULE graphics_driver;
|
||||||
|
|
||||||
|
extern void COMM_Init(void);
|
||||||
|
|
||||||
#define GET_USER_FUNC(name) USER_Driver.p##name = (void*)GetProcAddress( graphics_driver, #name )
|
#define GET_USER_FUNC(name) USER_Driver.p##name = (void*)GetProcAddress( graphics_driver, #name )
|
||||||
|
|
||||||
/* load the graphics driver */
|
/* load the graphics driver */
|
||||||
|
@ -246,6 +248,9 @@ static BOOL process_attach(void)
|
||||||
/* Initialize mouse driver */
|
/* Initialize mouse driver */
|
||||||
MOUSE_Enable( mouse_event );
|
MOUSE_Enable( mouse_event );
|
||||||
|
|
||||||
|
/* Initialize 16-bit serial communications */
|
||||||
|
COMM_Init();
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue