Ignore:
Timestamp:
Aug 28, 1999, 4:09:58 PM (26 years ago)
Author:
sandervl
Message:

Use shared memory for class & window objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/win32wndchild.cpp

    r314 r724  
    1 /* $Id: win32wndchild.cpp,v 1.1 1999-07-16 11:32:09 sandervl Exp $ */
     1/* $Id: win32wndchild.cpp,v 1.2 1999-08-28 14:09:30 sandervl Exp $ */
    22/*
    33 * Win32 Child/Parent window class for OS/2
     
    3535}
    3636//******************************************************************************
    37 //LIFO insertion
     37//FIFO insertion
    3838//******************************************************************************
    3939BOOL ChildWindow::AddChild(ChildWindow *child)
    4040{
     41 ChildWindow *curchild;
     42
    4143   mutex.enter();
    4244
    43    child->SetNextChild(children);
    44    children = child;
     45   curchild = children;
     46   if(curchild == NULL) {
     47        children = child;
     48   }
     49   else {
     50        while(curchild->GetNextChild()) {
     51                curchild = curchild->GetNextChild();
     52        }
     53        curchild->SetNextChild(this);
     54   }
     55   child->SetNextChild(NULL);
    4556
    4657   mutex.leave();
Note: See TracChangeset for help on using the changeset viewer.