mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
Patch by Yury Sidorov, jusid <[email protected]>. EnumThreadWindows should enumerate all nonchild windows associated with a thread according to MSDN docs. Currently it enumerates all windows.
svn path=/trunk/; revision=32926
This commit is contained in:
@@ -1336,16 +1336,19 @@ NtUserBuildHwndList(
|
||||
Window = CONTAINING_RECORD(Current, WINDOW_OBJECT, ThreadListEntry);
|
||||
ASSERT(Window);
|
||||
|
||||
if(dwCount < nBufSize && pWnd)
|
||||
if(bChildren || Window->hOwner != NULL)
|
||||
{
|
||||
Status = MmCopyToCaller(pWnd++, &Window->hSelf, sizeof(HWND));
|
||||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
break;
|
||||
}
|
||||
if(dwCount < nBufSize && pWnd)
|
||||
{
|
||||
Status = MmCopyToCaller(pWnd++, &Window->hSelf, sizeof(HWND));
|
||||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
break;
|
||||
}
|
||||
}
|
||||
dwCount++;
|
||||
}
|
||||
dwCount++;
|
||||
Current = Current->Flink;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user