Changeset 733 for trunk/dll/misc.c
- Timestamp:
- Jul 24, 2007, 1:24:41 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/misc.c
r730 r733 85 85 86 86 rc = DosGetInfoBlocks(&ptib, &ppib); 87 if (rc) 87 if (rc) { 88 88 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 89 89 "DosGetInfoBlocks"); 90 } 90 91 else { 91 92 PID pid; 92 93 TID tid; 93 94 94 if (WinQueryWindowProcess(hwnd, &pid, &tid)) 95 if (WinQueryWindowProcess(hwnd, &pid, &tid)) { 95 96 if (chkTid) { 96 // I fwindow owned by FM2 process on same thread?97 // Is window owned by FM2 process on same thread? 97 98 if (pid == ppib->pib_ulpid && tid == ptib->tib_ptib2->tib2_ultid) 98 99 return TRUE; 99 100 } 100 //Window is owned by FM2101 // Is window owned by some FM2 thread 101 102 else if (pid == ppib->pib_ulpid) 102 103 return TRUE; 104 } 103 105 } 104 106 return FALSE; … … 1394 1396 1395 1397 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)) { 1408 1401 QMSG qmsg; 1409 1402 for (;;) {
Note:
See TracChangeset
for help on using the changeset viewer.