_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{
SetLastNtError(_SEH2_GetExceptionCode());
- _SEH2_YIELD(goto Exit);
+ _SEH2_YIELD(goto Exit); // Return NULL
}
_SEH2_END;
!IS_ATOM(ClassName.Buffer))
{
EngSetLastError(ERROR_INVALID_PARAMETER);
- goto Exit;
+ goto Exit; // Return NULL
}
else if (ClassAtom == (RTL_ATOM)0)
{
/* LastError code was set by IntGetAtomFromStringOrAtom */
- goto Exit;
+ goto Exit; // Return NULL
}
}
}
if(!(Parent = UserGetWindowObject(hwndParent)))
{
- goto Exit;
+ goto Exit; // Return NULL
}
ChildAfter = NULL;
if(hwndChildAfter && !(ChildAfter = UserGetWindowObject(hwndChildAfter)))
{
- goto Exit;
+ goto Exit; // Return NULL
}
_SEH2_TRY
if (!(Wnd = UserGetWindowObject(hWnd)))
{
- goto Exit;
+ goto Exit; // Return 0
}
if ((Wnd->pcls->atomClassName != gpsi->atomSysClass[ICLS_LISTBOX]) && Wnd->fnid != FNID_LISTBOX)
if (!(WndShell = UserGetWindowObject(hwndShell)))
{
- goto Exit;
+ goto Exit; // Return FALSE
}
if (!(WndListView = UserGetWindowObject(hwndListView)))
{
- goto Exit;
+ goto Exit; // Return FALSE
}
Status = IntValidateWindowStationHandle(PsGetCurrentProcess()->Win32WindowStation,
if (!NT_SUCCESS(Status))
{
SetLastNtError(Status);
- goto Exit;
+ goto Exit; // Return FALSE
}
/*
if (WinStaObject->ShellWindow)
{
ObDereferenceObject(WinStaObject);
- goto Exit;
+ goto Exit; // Return FALSE
}
/*
if (WndListView->ExStyle & WS_EX_TOPMOST)
{
ObDereferenceObject(WinStaObject);
- goto Exit;
+ goto Exit; // Return FALSE
}
}
if (WndShell->ExStyle & WS_EX_TOPMOST)
{
ObDereferenceObject(WinStaObject);
- goto Exit;
+ goto Exit; // Return FALSE
}
UserRefObjectCo(WndShell, &Ref);
if (hWnd == IntGetDesktopWindow())
{
EngSetLastError(STATUS_ACCESS_DENIED);
- goto Exit;
+ goto Exit; // Return 0
}
if (!(Window = UserGetWindowObject(hWnd)))
{
- goto Exit;
+ goto Exit; // Return 0
}
switch (Index)
if (Index < 0)
{
EngSetLastError(ERROR_INVALID_INDEX);
- goto Exit;
+ goto Exit; // Return 0
}
}
if ((ULONG)Index > (Window->cbwndExtra - sizeof(WORD)))
{
EngSetLastError(ERROR_INVALID_INDEX);
- goto Exit;
+ goto Exit; // Return 0
}
OldValue = *((WORD *)((PCHAR)(Window + 1) + Index));
if (!(pWnd = UserGetWindowObject(hWnd)))
{
- goto Exit;
+ goto Exit; // Return 0
}
switch(Index)
if(MessageNameUnsafe == NULL)
{
EngSetLastError(ERROR_INVALID_PARAMETER);
- goto Exit;
+ goto Exit; // Return 0
}
Status = IntSafeCopyUnicodeStringTerminateNULL(&SafeMessageName, MessageNameUnsafe);
if(!NT_SUCCESS(Status))
{
SetLastNtError(Status);
- goto Exit;
+ goto Exit; // Return 0
}
Ret = (UINT)IntAddAtom(SafeMessageName.Buffer);
if (!(Wnd = UserGetWindowObject(hWnd)))
{
- goto Exit;
+ goto Exit; // Return FALSE
}
if (Wnd->head.pti->ppi != PsGetCurrentProcessWin32Process())
{
EngSetLastError(ERROR_ACCESS_DENIED);
- goto Exit;
+ goto Exit; // Return FALSE
}
// From user land we only set these.
Wnd->fnid != 0)
{
EngSetLastError(ERROR_INVALID_PARAMETER);
- goto Exit;
+ goto Exit; // Return FALSE
}
}
if(lpString && (nMaxCount <= 1))
{
EngSetLastError(ERROR_INVALID_PARAMETER);
- goto Exit;
+ goto Exit; // Return 0
}
if(!(Wnd = UserGetWindowObject(hWnd)))
{
- goto Exit;
+ goto Exit; // Return 0
}
Result = Wnd->strName.Length / sizeof(WCHAR);