mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:33:10 +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:
parent
b1be006e50
commit
3955c51005
2 changed files with 8 additions and 1 deletions
|
@ -1709,7 +1709,7 @@ WINAPI
|
||||||
PostQuitMessage(
|
PostQuitMessage(
|
||||||
int nExitCode)
|
int nExitCode)
|
||||||
{
|
{
|
||||||
(void) NtUserPostMessage(NULL, WM_QUIT, nExitCode, 0);
|
NtUserCallOneParam(nExitCode, ONEPARAM_ROUTINE_POSTQUITMESSAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -152,6 +152,13 @@ NtUserCallOneParam(
|
||||||
|
|
||||||
switch(Routine)
|
switch(Routine)
|
||||||
{
|
{
|
||||||
|
case ONEPARAM_ROUTINE_POSTQUITMESSAGE:
|
||||||
|
{
|
||||||
|
PTHREADINFO pti;
|
||||||
|
pti = PsGetCurrentThreadWin32Thread();
|
||||||
|
MsqPostQuitMessage(pti->MessageQueue, Param);
|
||||||
|
RETURN(TRUE);
|
||||||
|
}
|
||||||
case ONEPARAM_ROUTINE_SHOWCURSOR:
|
case ONEPARAM_ROUTINE_SHOWCURSOR:
|
||||||
RETURN( (DWORD)UserShowCursor((BOOL)Param) );
|
RETURN( (DWORD)UserShowCursor((BOOL)Param) );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue