Changeset 882 for trunk/dll/misc.c


Ignore:
Timestamp:
Dec 11, 2007, 1:11:58 AM (18 years ago)
Author:
Gregg Young
Message:

Update CopyPresParams to include all types of Pres Params

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r877 r882  
    14111411  if (!rc) {
    14121412
    1413       // If window owned by some other process or some other thread?
    1414       if (!IsFm2Window(h, 1)) {
    1415           QMSG qmsg;
    1416           for (;;) {
    1417             DosSleep(1);
    1418             rc = WinPostMsg(h, msg, mp1, mp2);
    1419             if (rc)
    1420               break;                    // OK
    1421             if (!WinIsWindow((HAB) 0, h))
    1422               break;                    // Window gone
    1423             if (WinPeekMsg((HAB) 0, &qmsg, (HWND) 0, 0, 0, PM_NOREMOVE))
    1424               break;                    // Queue has message(s)
    1425           }                             // for
    1426         }
    1427     }
     1413    // If window owned by some other process or some other thread?
     1414    if (!IsFm2Window(h, 1)) {
     1415      QMSG qmsg;
     1416      for (;;) {
     1417        DosSleep(1);
     1418        rc = WinPostMsg(h, msg, mp1, mp2);
     1419        if (rc)
     1420          break;                        // OK
     1421        if (!WinIsWindow((HAB) 0, h))
     1422          break;                        // Window gone
     1423        if (WinPeekMsg((HAB) 0, &qmsg, (HWND) 0, 0, 0, PM_NOREMOVE))
     1424          break;                        // Queue has message(s)
     1425      }                         // for
     1426    }
     1427  }
    14281428  return rc;
    14291429}
Note: See TracChangeset for help on using the changeset viewer.