mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Fixed typo/bug in W32kCallWindowProc.
svn path=/trunk/; revision=3134
This commit is contained in:
parent
5bba28324f
commit
1c6674aa68
1 changed files with 7 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: callback.c,v 1.3 2002/06/18 21:51:11 dwelch Exp $
|
/* $Id: callback.c,v 1.4 2002/06/21 04:14:07 ei Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -47,7 +47,7 @@ W32kSendCREATEMessage(HWND Wnd, CREATESTRUCT* CreateStruct)
|
||||||
LRESULT Result;
|
LRESULT Result;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
PVOID ResultPointer;
|
PVOID ResultPointer;
|
||||||
DWORD ResultLength;
|
ULONG ResultLength;
|
||||||
|
|
||||||
Arguments.Wnd = Wnd;
|
Arguments.Wnd = Wnd;
|
||||||
Arguments.CreateStruct = *CreateStruct;
|
Arguments.CreateStruct = *CreateStruct;
|
||||||
|
@ -72,7 +72,7 @@ W32kSendNCCREATEMessage(HWND Wnd, CREATESTRUCT* CreateStruct)
|
||||||
LRESULT Result;
|
LRESULT Result;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
PVOID ResultPointer;
|
PVOID ResultPointer;
|
||||||
DWORD ResultLength;
|
ULONG ResultLength;
|
||||||
|
|
||||||
Arguments.Wnd = Wnd;
|
Arguments.Wnd = Wnd;
|
||||||
Arguments.CreateStruct = *CreateStruct;
|
Arguments.CreateStruct = *CreateStruct;
|
||||||
|
@ -88,7 +88,7 @@ W32kSendNCCREATEMessage(HWND Wnd, CREATESTRUCT* CreateStruct)
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
return(Result);
|
return(Result);
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT STDCALL
|
LRESULT STDCALL
|
||||||
W32kCallWindowProc(WNDPROC Proc,
|
W32kCallWindowProc(WNDPROC Proc,
|
||||||
|
@ -101,6 +101,7 @@ W32kCallWindowProc(WNDPROC Proc,
|
||||||
LRESULT Result;
|
LRESULT Result;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
PVOID ResultPointer;
|
PVOID ResultPointer;
|
||||||
|
ULONG ResultLength;
|
||||||
|
|
||||||
Arguments.Proc = Proc;
|
Arguments.Proc = Proc;
|
||||||
Arguments.Wnd = Wnd;
|
Arguments.Wnd = Wnd;
|
||||||
|
@ -108,11 +109,12 @@ W32kCallWindowProc(WNDPROC Proc,
|
||||||
Arguments.wParam = wParam;
|
Arguments.wParam = wParam;
|
||||||
Arguments.lParam = lParam;
|
Arguments.lParam = lParam;
|
||||||
ResultPointer = &Result;
|
ResultPointer = &Result;
|
||||||
|
ResultLength = sizeof(LRESULT);
|
||||||
Status = NtW32Call(USER32_CALLBACK_WINDOWPROC,
|
Status = NtW32Call(USER32_CALLBACK_WINDOWPROC,
|
||||||
&Arguments,
|
&Arguments,
|
||||||
sizeof(WINDOWPROC_CALLBACK_ARGUMENTS),
|
sizeof(WINDOWPROC_CALLBACK_ARGUMENTS),
|
||||||
&ResultPointer,
|
&ResultPointer,
|
||||||
sizeof(LRESULT));
|
&ResultLength);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
return(0xFFFFFFFF);
|
return(0xFFFFFFFF);
|
||||||
|
|
Loading…
Reference in a new issue