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
c6b852e3
Commit
c6b852e3
authored
Feb 27, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use more public declarations in exe entry points.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c15733de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
crt_main.c
dlls/msvcrt/crt_main.c
+2
-6
crt_wmain.c
dlls/msvcrt/crt_wmain.c
+2
-6
No files found.
dlls/msvcrt/crt_main.c
View file @
c6b852e3
...
...
@@ -25,15 +25,11 @@
#ifdef __MINGW32__
#include <stdarg.h>
#include <process.h>
#include "windef.h"
#include "winbase.h"
/* FIXME: Use msvcrt headers once we move to PE file */
void
__cdecl
exit
(
int
);
void
__cdecl
__getmainargs
(
int
*
,
char
***
,
char
***
,
int
,
int
*
);
void
__cdecl
__set_app_type
(
int
);
int
__cdecl
main
(
int
argc
,
char
**
argv
,
char
**
env
);
static
const
IMAGE_NT_HEADERS
*
get_nt_header
(
void
)
...
...
@@ -48,7 +44,7 @@ int __cdecl mainCRTStartup(void)
char
**
argv
,
**
env
;
__getmainargs
(
&
argc
,
&
argv
,
&
env
,
0
,
&
new_mode
);
_
_set_app_type
(
get_nt_header
()
->
OptionalHeader
.
Subsystem
==
IMAGE_SUBSYSTEM_WINDOWS_GUI
?
2
:
1
);
_
set_app_type
(
get_nt_header
()
->
OptionalHeader
.
Subsystem
==
IMAGE_SUBSYSTEM_WINDOWS_GUI
?
_crt_gui_app
:
_crt_console_app
);
ret
=
main
(
argc
,
argv
,
env
);
...
...
dlls/msvcrt/crt_wmain.c
View file @
c6b852e3
...
...
@@ -25,15 +25,11 @@
#ifdef __MINGW32__
#include <stdarg.h>
#include <process.h>
#include "windef.h"
#include "winbase.h"
/* FIXME: Use msvcrt headers once we move to PE file */
void
__cdecl
exit
(
int
);
void
__cdecl
__wgetmainargs
(
int
*
,
WCHAR
***
,
WCHAR
***
,
int
,
int
*
);
void
__cdecl
__set_app_type
(
int
);
int
__cdecl
wmain
(
int
argc
,
WCHAR
**
argv
,
WCHAR
**
env
);
static
const
IMAGE_NT_HEADERS
*
get_nt_header
(
void
)
...
...
@@ -48,7 +44,7 @@ int __cdecl wmainCRTStartup(void)
WCHAR
**
argv
,
**
env
;
__wgetmainargs
(
&
argc
,
&
argv
,
&
env
,
0
,
&
new_mode
);
_
_set_app_type
(
get_nt_header
()
->
OptionalHeader
.
Subsystem
==
IMAGE_SUBSYSTEM_WINDOWS_GUI
?
2
:
1
);
_
set_app_type
(
get_nt_header
()
->
OptionalHeader
.
Subsystem
==
IMAGE_SUBSYSTEM_WINDOWS_GUI
?
_crt_gui_app
:
_crt_console_app
);
ret
=
wmain
(
argc
,
argv
,
env
);
...
...
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