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
99d8b7f7
Commit
99d8b7f7
authored
Jul 31, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved initial AllocConsole call to kernel init (based on a patch by
Eric Pouech).
parent
7fcae156
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
kernel_main.c
dlls/kernel/kernel_main.c
+11
-0
process.c
scheduler/process.c
+3
-7
No files found.
dlls/kernel/kernel_main.c
View file @
99d8b7f7
...
...
@@ -27,6 +27,8 @@
#include <signal.h>
#include "winbase.h"
#include "wincon.h"
#include "ntddk.h"
#include "wine/winbase16.h"
#include "wine/library.h"
...
...
@@ -42,6 +44,8 @@ extern BOOL RELAY_Init(void);
extern
int
__wine_set_signal_handler
(
unsigned
,
int
(
*
)(
unsigned
));
extern
int
CONSOLE_HandleCtrlC
(
unsigned
);
extern
int
main_create_flags
;
/***********************************************************************
* KERNEL process initialisation routine
*/
...
...
@@ -106,6 +110,13 @@ static BOOL process_attach(void)
/* finish the process initialisation, if needed */
__wine_set_signal_handler
(
SIGINT
,
CONSOLE_HandleCtrlC
);
if
(
main_create_flags
&
CREATE_NEW_CONSOLE
)
{
HMODULE
mod
=
GetModuleHandleA
(
0
);
if
(
RtlImageNtHeader
(
mod
)
->
OptionalHeader
.
Subsystem
==
IMAGE_SUBSYSTEM_WINDOWS_CUI
)
AllocConsole
();
}
return
TRUE
;
}
...
...
scheduler/process.c
View file @
99d8b7f7
...
...
@@ -115,10 +115,10 @@ PDB current_process;
static
char
main_exe_name
[
MAX_PATH
];
static
char
*
main_exe_name_ptr
=
main_exe_name
;
static
HANDLE
main_exe_file
;
static
int
main_create_flags
;
static
unsigned
int
server_startticks
;
int
main_create_flags
=
0
;
/* memory/environ.c */
extern
struct
_ENVDB
*
ENV_InitStartupInfo
(
size_t
info_size
,
char
*
main_exe_name
,
size_t
main_exe_size
);
...
...
@@ -469,11 +469,7 @@ static void start_process(void)
entry
=
(
LPTHREAD_START_ROUTINE
)((
char
*
)
current_process
.
module
+
PE_HEADER
(
current_process
.
module
)
->
OptionalHeader
.
AddressOfEntryPoint
);
console_app
=
(
PE_HEADER
(
current_process
.
module
)
->
OptionalHeader
.
Subsystem
==
IMAGE_SUBSYSTEM_WINDOWS_CUI
);
if
(
console_app
)
{
current_process
.
flags
|=
PDB32_CONSOLE_PROC
;
if
(
main_create_flags
&
CREATE_NEW_CONSOLE
)
AllocConsole
();
}
if
(
console_app
)
current_process
.
flags
|=
PDB32_CONSOLE_PROC
;
/* Signal the parent process to continue */
SERVER_START_REQ
(
init_process_done
)
...
...
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