mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
Implement ONE_PARAM_ROUTINE_POSTQUITMESSAGE case in NtUserCallOneParam and use it in PostQuitMessage instead of NtUserPostMessage. Fixes some hangs in comctl32_winetests introduced with r40964. Patch by Giannis Adamopoulos.
See issue #4058 for more details. svn path=/trunk/; revision=40971
This commit is contained in:
@@ -1709,7 +1709,7 @@ WINAPI
|
||||
PostQuitMessage(
|
||||
int nExitCode)
|
||||
{
|
||||
(void) NtUserPostMessage(NULL, WM_QUIT, nExitCode, 0);
|
||||
NtUserCallOneParam(nExitCode, ONEPARAM_ROUTINE_POSTQUITMESSAGE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -152,6 +152,13 @@ NtUserCallOneParam(
|
||||
|
||||
switch(Routine)
|
||||
{
|
||||
case ONEPARAM_ROUTINE_POSTQUITMESSAGE:
|
||||
{
|
||||
PTHREADINFO pti;
|
||||
pti = PsGetCurrentThreadWin32Thread();
|
||||
MsqPostQuitMessage(pti->MessageQueue, Param);
|
||||
RETURN(TRUE);
|
||||
}
|
||||
case ONEPARAM_ROUTINE_SHOWCURSOR:
|
||||
RETURN( (DWORD)UserShowCursor((BOOL)Param) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user