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
a2e1e499
Commit
a2e1e499
authored
Apr 15, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Build the CRT startup code also for non-PE builds.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b66e13ef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
20 deletions
+6
-20
crt_main.c
dlls/msvcrt/crt_main.c
+3
-6
crt_winmain.c
dlls/msvcrt/crt_winmain.c
+0
-4
crt_wmain.c
dlls/msvcrt/crt_wmain.c
+3
-6
crt_wwinmain.c
dlls/msvcrt/crt_wwinmain.c
+0
-4
No files found.
dlls/msvcrt/crt_main.c
View file @
a2e1e499
...
...
@@ -22,8 +22,6 @@
#pragma makedep implib
#endif
#ifdef __MINGW32__
#if _MSVCR_VER >= 140
#define _UCRT
#endif
...
...
@@ -34,13 +32,14 @@
#include "windef.h"
#include "winbase.h"
#include "winternl.h"
int
__cdecl
main
(
int
argc
,
char
**
argv
,
char
**
env
);
static
const
IMAGE_NT_HEADERS
*
get_nt_header
(
void
)
{
extern
IMAGE_DOS_HEADER
__ImageBase
;
return
(
const
IMAGE_NT_HEADERS
*
)((
char
*
)
&
__ImageBase
+
__ImageBase
.
e_lfanew
);
IMAGE_DOS_HEADER
*
dos
=
(
IMAGE_DOS_HEADER
*
)
NtCurrentTeb
()
->
Peb
->
ImageBaseAddress
;
return
(
const
IMAGE_NT_HEADERS
*
)((
char
*
)
dos
+
dos
->
e_lfanew
);
}
int
__cdecl
mainCRTStartup
(
void
)
...
...
@@ -65,5 +64,3 @@ int __cdecl mainCRTStartup(void)
exit
(
ret
);
return
ret
;
}
#endif
dlls/msvcrt/crt_winmain.c
View file @
a2e1e499
...
...
@@ -22,8 +22,6 @@
#pragma makedep implib
#endif
#ifdef __MINGW32__
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
...
...
@@ -54,5 +52,3 @@ int __cdecl main( int argc, char *argv[] )
if
(
!
(
info
.
dwFlags
&
STARTF_USESHOWWINDOW
))
info
.
wShowWindow
=
SW_SHOWNORMAL
;
return
WinMain
(
GetModuleHandleA
(
0
),
0
,
cmdline
,
info
.
wShowWindow
);
}
#endif
dlls/msvcrt/crt_wmain.c
View file @
a2e1e499
...
...
@@ -22,8 +22,6 @@
#pragma makedep implib
#endif
#ifdef __MINGW32__
#if _MSVCR_VER >= 140
#define _UCRT
#endif
...
...
@@ -34,13 +32,14 @@
#include "windef.h"
#include "winbase.h"
#include "winternl.h"
int
__cdecl
wmain
(
int
argc
,
WCHAR
**
argv
,
WCHAR
**
env
);
static
const
IMAGE_NT_HEADERS
*
get_nt_header
(
void
)
{
extern
IMAGE_DOS_HEADER
__ImageBase
;
return
(
const
IMAGE_NT_HEADERS
*
)((
char
*
)
&
__ImageBase
+
__ImageBase
.
e_lfanew
);
IMAGE_DOS_HEADER
*
dos
=
(
IMAGE_DOS_HEADER
*
)
NtCurrentTeb
()
->
Peb
->
ImageBaseAddress
;
return
(
const
IMAGE_NT_HEADERS
*
)((
char
*
)
dos
+
dos
->
e_lfanew
);
}
int
__cdecl
wmainCRTStartup
(
void
)
...
...
@@ -65,5 +64,3 @@ int __cdecl wmainCRTStartup(void)
exit
(
ret
);
return
ret
;
}
#endif
dlls/msvcrt/crt_wwinmain.c
View file @
a2e1e499
...
...
@@ -22,8 +22,6 @@
#pragma makedep implib
#endif
#ifdef __MINGW32__
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
...
...
@@ -56,5 +54,3 @@ int __cdecl wmain( int argc, WCHAR *argv[] )
if
(
!
(
info
.
dwFlags
&
STARTF_USESHOWWINDOW
))
info
.
wShowWindow
=
SW_SHOWNORMAL
;
return
wWinMain
(
GetModuleHandleW
(
0
),
0
,
cmdline
,
info
.
wShowWindow
);
}
#endif
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