Changeset 733 for trunk/dll/misc.c


Ignore:
Timestamp:
Jul 24, 2007, 1:24:41 AM (18 years ago)
Author:
Steven Levine
Message:

Comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r730 r733  
    8585
    8686    rc = DosGetInfoBlocks(&ptib, &ppib);
    87     if (rc)
     87    if (rc) {
    8888      Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    8989                "DosGetInfoBlocks");
     90    }
    9091    else {
    9192      PID pid;
    9293      TID tid;
    9394
    94       if (WinQueryWindowProcess(hwnd, &pid, &tid))
     95      if (WinQueryWindowProcess(hwnd, &pid, &tid)) {
    9596        if (chkTid) {
    96           // If window owned by FM2 process on same thread?
     97          // Is window owned by FM2 process on same thread?
    9798          if (pid == ppib->pib_ulpid && tid == ptib->tib_ptib2->tib2_ultid)
    9899            return TRUE;
    99100        }
    100       //Window is owned by FM2
     101        // Is window owned by some FM2 thread
    101102        else if (pid == ppib->pib_ulpid)
    102103          return TRUE;
     104      }
    103105    }
    104106    return FALSE;
     
    13941396
    13951397  if (!rc) {
    1396    /* PIB *ppib;
    1397     TIB *ptib;
    1398 
    1399     if (!DosGetInfoBlocks(&ptib, &ppib)) {
    1400       PID pid;
    1401       TID tid;
    1402       QMSG qmsg;
    1403 
    1404       if (WinQueryWindowProcess(h, &pid, &tid)) {
    1405         // If window owned by some other process or some other thread?
    1406         if (pid != ppib->pib_ulpid || tid != ptib->tib_ptib2->tib2_ultid)*/
    1407       if(!IsFm2Window(h, 1)){
     1398
     1399      // If window owned by some other process or some other thread?
     1400      if (!IsFm2Window(h, 1)) {
    14081401          QMSG qmsg;
    14091402          for (;;) {
Note: See TracChangeset for help on using the changeset viewer.