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
7ba54ab4
Commit
7ba54ab4
authored
Oct 07, 2008
by
Andrey Turkin
Committed by
Alexandre Julliard
Oct 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Add ExitProcess wrapper to please Shrinker.
parent
b2618367
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
process.c
dlls/kernel32/process.c
+21
-1
No files found.
dlls/kernel32/process.c
View file @
7ba54ab4
...
@@ -2137,7 +2137,6 @@ BOOL WINAPI TerminateProcess( HANDLE handle, DWORD exit_code )
...
@@ -2137,7 +2137,6 @@ BOOL WINAPI TerminateProcess( HANDLE handle, DWORD exit_code )
return
!
status
;
return
!
status
;
}
}
/***********************************************************************
/***********************************************************************
* ExitProcess (KERNEL32.@)
* ExitProcess (KERNEL32.@)
*
*
...
@@ -2149,6 +2148,26 @@ BOOL WINAPI TerminateProcess( HANDLE handle, DWORD exit_code )
...
@@ -2149,6 +2148,26 @@ BOOL WINAPI TerminateProcess( HANDLE handle, DWORD exit_code )
* RETURNS
* RETURNS
* Nothing.
* Nothing.
*/
*/
#ifdef __i386__
__ASM_GLOBAL_FUNC
(
ExitProcess
,
/* Shrinker depend on this particular ExitProcess implementation */
"pushl %ebp
\n\t
"
".byte 0x8B, 0xEC
\n\t
"
/* movl %esp, %ebp */
".byte 0x6A, 0x00
\n\t
"
/* pushl $0 */
".byte 0x68, 0x00, 0x00, 0x00, 0x00
\n\t
"
/* pushl $0 - 4 bytes immediate */
"pushl 8(%ebp)
\n\t
"
"call "
__ASM_NAME
(
"process_ExitProcess"
)
"
\n\t
"
"leave
\n\t
"
"ret $4"
)
void
WINAPI
process_ExitProcess
(
DWORD
status
)
{
LdrShutdownProcess
();
NtTerminateProcess
(
GetCurrentProcess
(),
status
);
exit
(
status
);
}
#else
void
WINAPI
ExitProcess
(
DWORD
status
)
void
WINAPI
ExitProcess
(
DWORD
status
)
{
{
LdrShutdownProcess
();
LdrShutdownProcess
();
...
@@ -2156,6 +2175,7 @@ void WINAPI ExitProcess( DWORD status )
...
@@ -2156,6 +2175,7 @@ void WINAPI ExitProcess( DWORD status )
exit
(
status
);
exit
(
status
);
}
}
#endif
/***********************************************************************
/***********************************************************************
* GetExitCodeProcess [KERNEL32.@]
* GetExitCodeProcess [KERNEL32.@]
...
...
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