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 BOOL RELAY_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 */
|
||||
if (LoadLibrary16( "system" ) < 32) return FALSE;
|
||||
|
||||
/* Initialize communications */
|
||||
COMM_Init();
|
||||
|
||||
/* Read DOS config.sys */
|
||||
if (!DOSCONF_ReadConfig()) return FALSE;
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ IMPORTS = gdi32 kernel32 ntdll
|
|||
C_SRCS = \
|
||||
bidi16.c \
|
||||
cache.c \
|
||||
comm16.c \
|
||||
dde/client.c \
|
||||
dde/ddeml16.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;
|
||||
|
||||
extern void COMM_Init(void);
|
||||
|
||||
#define GET_USER_FUNC(name) USER_Driver.p##name = (void*)GetProcAddress( graphics_driver, #name )
|
||||
|
||||
/* load the graphics driver */
|
||||
|
@ -246,6 +248,9 @@ static BOOL process_attach(void)
|
|||
/* Initialize mouse driver */
|
||||
MOUSE_Enable( mouse_event );
|
||||
|
||||
/* Initialize 16-bit serial communications */
|
||||
COMM_Init();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue