mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 12:01:55 +00:00
[NTUSER] co_IntSendMessageWithCallBack: Formatting only, no functional changes
e.g. wrong indentation. Want to port something back here, and the slight tweaking allows master to remain in sync with previous releases.
This commit is contained in:
parent
985680068c
commit
6b7efb331c
1 changed files with 36 additions and 40 deletions
|
@ -2,7 +2,6 @@
|
|||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS Win32k subsystem
|
||||
* PURPOSE: Messages
|
||||
* FILE: win32ss/user/ntuser/message.c
|
||||
* PROGRAMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||
*/
|
||||
|
||||
|
@ -1750,7 +1749,7 @@ co_IntSendMessageWithCallBack( HWND hWnd,
|
|||
|
||||
if (!(Window = UserGetWindowObject(hWnd)))
|
||||
{
|
||||
TRACE("SendMessageWithCallBack: Invalid handle 0x%p!\n",hWnd);
|
||||
TRACE("SendMessageWithCallBack: Invalid handle 0x%p\n",hWnd);
|
||||
RETURN(FALSE);
|
||||
}
|
||||
|
||||
|
@ -1759,17 +1758,14 @@ co_IntSendMessageWithCallBack( HWND hWnd,
|
|||
if (Window->state & WNDS_DESTROYED)
|
||||
{
|
||||
/* FIXME: last error? */
|
||||
ERR("Attempted to send message to window %p that is being destroyed!\n", hWnd);
|
||||
ERR("Attempted to send message to window %p that is being destroyed\n", hWnd);
|
||||
RETURN(FALSE);
|
||||
}
|
||||
|
||||
Win32Thread = PsGetCurrentThreadWin32Thread();
|
||||
|
||||
if (Win32Thread == NULL ||
|
||||
Win32Thread->TIF_flags & TIF_INCLEANUP)
|
||||
{
|
||||
if (Win32Thread == NULL || Win32Thread->TIF_flags & TIF_INCLEANUP)
|
||||
RETURN(FALSE);
|
||||
}
|
||||
|
||||
ptiSendTo = IntSendTo(Window, Win32Thread, Msg);
|
||||
|
||||
|
@ -1778,7 +1774,7 @@ co_IntSendMessageWithCallBack( HWND hWnd,
|
|||
{
|
||||
if (Win32Thread->TIF_flags & TIF_INCLEANUP) RETURN(FALSE);
|
||||
|
||||
TRACE("SMWCB: Internal Message!\n");
|
||||
TRACE("SMWCB: Internal Message\n");
|
||||
Result = (ULONG_PTR)handle_internal_message(Window, Msg, wParam, lParam);
|
||||
if (uResult) *uResult = Result;
|
||||
RETURN(TRUE);
|
||||
|
@ -1867,7 +1863,7 @@ co_IntSendMessageWithCallBack( HWND hWnd,
|
|||
|
||||
if(!(Message = AllocateUserMessage(FALSE)))
|
||||
{
|
||||
ERR("MsqSendMessage(): Not enough memory to allocate a message\n");
|
||||
ERR("Failed to allocate message\n");
|
||||
RETURN(FALSE);
|
||||
}
|
||||
|
||||
|
@ -1879,7 +1875,7 @@ co_IntSendMessageWithCallBack( HWND hWnd,
|
|||
Message->lResult = 0;
|
||||
Message->QS_Flags = 0;
|
||||
Message->ptiReceiver = ptiSendTo;
|
||||
Message->ptiSender = NULL; // mjmartin, you are right! This is null.
|
||||
Message->ptiSender = NULL;
|
||||
Message->ptiCallBackSender = Win32Thread;
|
||||
Message->CompletionCallback = CompletionCallback;
|
||||
Message->CompletionCallbackContext = CompletionCallbackContext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue