* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: window.c,v 1.245 2004/07/24 01:28:15 navaraf Exp $
+/* $Id: window.c,v 1.246 2004/07/26 14:58:35 jimtabor Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
Window = CONTAINING_RECORD(Current, WINDOW_OBJECT, ThreadListEntry);
ASSERT(Window);
- if(dwCount < nBufSize && pWnd && (Window->Style & WS_CHILD))
+ if(dwCount < nBufSize && pWnd)
{
Status = MmCopyToCaller(pWnd++, &Window->Self, sizeof(HWND));
if(!NT_SUCCESS(Status))
break;
}
}
-
- if(!(Window->Style & WS_CHILD))
- {
- dwCount++;
- }
-
+ dwCount++;
Current = Current->Flink;
}
IntUnLockThreadWindows(W32Thread);