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
2ef94114
Commit
2ef94114
authored
Mar 31, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecrt0: Don't bother passing the environment to the _init function.
We'd have to use the Windows environment anyway, not the Unix one.
parent
61fa9bb0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
dll_entry.c
dlls/winecrt0/dll_entry.c
+1
-1
drv_entry.c
dlls/winecrt0/drv_entry.c
+1
-1
exe_entry.c
dlls/winecrt0/exe_entry.c
+1
-1
exe_wentry.c
dlls/winecrt0/exe_wentry.c
+1
-1
No files found.
dlls/winecrt0/dll_entry.c
View file @
2ef94114
...
@@ -34,7 +34,7 @@ BOOL WINAPI DECLSPEC_HIDDEN __wine_spec_dll_entry( HINSTANCE inst, DWORD reason,
...
@@ -34,7 +34,7 @@ BOOL WINAPI DECLSPEC_HIDDEN __wine_spec_dll_entry( HINSTANCE inst, DWORD reason,
if
(
reason
==
DLL_PROCESS_ATTACH
&&
__wine_spec_init_state
!=
CONSTRUCTORS_DONE
)
if
(
reason
==
DLL_PROCESS_ATTACH
&&
__wine_spec_init_state
!=
CONSTRUCTORS_DONE
)
{
{
call_fini
=
TRUE
;
call_fini
=
TRUE
;
_init
(
__wine_main_argc
,
__wine_main_argv
,
__wine_main_environ
);
_init
(
__wine_main_argc
,
__wine_main_argv
,
NULL
);
}
}
ret
=
DllMain
(
inst
,
reason
,
reserved
);
ret
=
DllMain
(
inst
,
reason
,
reserved
);
...
...
dlls/winecrt0/drv_entry.c
View file @
2ef94114
...
@@ -31,7 +31,7 @@ NTSTATUS DECLSPEC_HIDDEN WINAPI __wine_spec_drv_entry( struct _DRIVER_OBJECT *ob
...
@@ -31,7 +31,7 @@ NTSTATUS DECLSPEC_HIDDEN WINAPI __wine_spec_drv_entry( struct _DRIVER_OBJECT *ob
{
{
BOOL
needs_init
=
(
__wine_spec_init_state
!=
CONSTRUCTORS_DONE
);
BOOL
needs_init
=
(
__wine_spec_init_state
!=
CONSTRUCTORS_DONE
);
if
(
needs_init
)
_init
(
__wine_main_argc
,
__wine_main_argv
,
__wine_main_environ
);
if
(
needs_init
)
_init
(
__wine_main_argc
,
__wine_main_argv
,
NULL
);
return
DriverEntry
(
obj
,
path
);
return
DriverEntry
(
obj
,
path
);
/* there is no detach routine so we can't call destructors */
/* there is no detach routine so we can't call destructors */
}
}
dlls/winecrt0/exe_entry.c
View file @
2ef94114
...
@@ -32,7 +32,7 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_entry( PEB *peb )
...
@@ -32,7 +32,7 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_entry( PEB *peb )
BOOL
needs_init
=
(
__wine_spec_init_state
!=
CONSTRUCTORS_DONE
);
BOOL
needs_init
=
(
__wine_spec_init_state
!=
CONSTRUCTORS_DONE
);
DWORD
ret
;
DWORD
ret
;
if
(
needs_init
)
_init
(
__wine_main_argc
,
__wine_main_argv
,
__wine_main_environ
);
if
(
needs_init
)
_init
(
__wine_main_argc
,
__wine_main_argv
,
NULL
);
ret
=
main
(
__wine_main_argc
,
__wine_main_argv
);
ret
=
main
(
__wine_main_argc
,
__wine_main_argv
);
if
(
needs_init
)
_fini
();
if
(
needs_init
)
_fini
();
ExitProcess
(
ret
);
ExitProcess
(
ret
);
...
...
dlls/winecrt0/exe_wentry.c
View file @
2ef94114
...
@@ -32,7 +32,7 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_wentry( PEB *peb )
...
@@ -32,7 +32,7 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_wentry( PEB *peb )
BOOL
needs_init
=
(
__wine_spec_init_state
!=
CONSTRUCTORS_DONE
);
BOOL
needs_init
=
(
__wine_spec_init_state
!=
CONSTRUCTORS_DONE
);
DWORD
ret
;
DWORD
ret
;
if
(
needs_init
)
_init
(
__wine_main_argc
,
__wine_main_argv
,
__wine_main_environ
);
if
(
needs_init
)
_init
(
__wine_main_argc
,
__wine_main_argv
,
NULL
);
ret
=
wmain
(
__wine_main_argc
,
__wine_main_wargv
);
ret
=
wmain
(
__wine_main_argc
,
__wine_main_wargv
);
if
(
needs_init
)
_fini
();
if
(
needs_init
)
_fini
();
ExitProcess
(
ret
);
ExitProcess
(
ret
);
...
...
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