Changeset 563
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/arccnrs.c
r562 r563 132 132 if (*viewer) { 133 133 ExecOnList((HWND) 0, viewer, WINDOWED | SEPARATE | 134 (fViewChild ? CHILD : 0),134 (fViewChild ? CHILD : 0), 135 135 NULL, list, NULL); 136 136 } … … 379 379 DosError(FERR_DISABLEHARDERR); 380 380 if (!DosQAppType(s, &apptype) && 381 ((apptype & FAPPTYP_DOS) || 382 (apptype & FAPPTYP_WINDOWSREAL) || 383 (apptype & FAPPTYP_WINDOWSPROT) || (apptype & 0x1000))) { 381 (apptype & FAPPTYP_DOS || 382 apptype & FAPPTYP_WINDOWSREAL || 383 apptype & FAPPTYP_WINDOWSPROT || 384 apptype & FAPPTYP_WINDOWSPROT31)) { 384 385 p = GetCmdSpec(TRUE); 385 386 runemf2(SEPARATE | INVISIBLE | MINIMIZED | BACKGROUND | WAIT, … … 1347 1348 needs_quoting(s) ? "\"" : NullStr, 1348 1349 s, 1349 needs_quoting(s) ? "\"" : NullStr);1350 needs_quoting(s) ? "\"" : NullStr); 1350 1351 1351 1352 // printf("%s %d runemf2 returned\n", __FILE__, __LINE__); fflush(stdout); // 10 Mar 07 SHL … … 2157 2158 } 2158 2159 } 2159 if ((dcd->arcfilled && 2160 !dcd->totalfiles) ||!IsArcThere(hwnd, dcd->arcname))2160 if ((dcd->arcfilled && !dcd->totalfiles) || 2161 !IsArcThere(hwnd, dcd->arcname)) 2161 2162 PostMsg(hwnd, WM_CLOSE, MPVOID, MPVOID); 2162 2163 } … … 2526 2527 hwndActive = WinQueryFocus(HWND_DESKTOP); 2527 2528 WinSetFocus(HWND_DESKTOP, 2528 ((hwndActive == hwnd)?2529 WinWindowFromID(dcd->hwndClient, ARC_EXTRACTDIR) :2530 hwnd));2529 hwndActive == hwnd ? 2530 WinWindowFromID(dcd->hwndClient, ARC_EXTRACTDIR) : 2531 hwnd); 2531 2532 } 2532 2533 break; … … 2674 2675 (!fExternalCollector && !strcmp(realappname, FM3Str))) 2675 2676 GetNextWindowPos(dcd->hwndParent, &swp, NULL, NULL); 2676 hwndC = StartCollector( (fExternalCollector ||2677 strcmp(realappname, FM3Str)) ?2678 HWND_DESKTOP : dcd->hwndParent, 4);2677 hwndC = StartCollector(fExternalCollector || 2678 strcmp(realappname, FM3Str) ? 2679 HWND_DESKTOP : dcd->hwndParent, 4); 2679 2680 if (hwndC) { 2680 2681 if (!ParentIsDesktop(hwnd, dcd->hwndParent) && !fAutoTile && -
trunk/dll/systemf.c
r562 r563 1082 1082 } 1083 1083 1084 // printf("%s %d DosStartsession thread 0x%x data\n ",1084 // printf("%s %d DosStartsession thread 0x%x data\n ", 1085 1085 // __FILE__, __LINE__,ptib->tib_ordinal); fflush(stdout); // 10 Mar 07 SHL hang 1086 // printf(" %d %d %d %s %s %s %d %d\n %s %x %x\n",1086 // printf(" %d %d %d %s %s %s %d %d\n %s %x %x\n", 1087 1087 // sdata.Length , sdata.Related, sdata.FgBg, sdata.PgmName, 1088 // sdata.PgmInputs, sdata.TermQ, sdata.InheritOpt,1089 // sdata.SessionType, szTermQName,1090 // hTermQ, hTermQSem); fflush(stdout);1088 // sdata.PgmInputs, sdata.TermQ, sdata.InheritOpt, 1089 // sdata.SessionType, szTermQName, 1090 // hTermQ, hTermQSem); fflush(stdout); 1091 1091 ret = DosStartSession(&sdata, &ulSessID, &sessPID); 1092 if (type & WAIT) { 1093 // printf("%s %d DosStartession thread 0x%x rc = %d sess = %u pid = 0x%x\n", 1094 // __FILE__, __LINE__, ptib->tib_ordinal,ret, ulSessID, sessPID); fflush(stdout); // 10 Mar 07 SHL hang 1095 } 1096 else { 1097 // printf("%s %d DosStartession thread 0x%x nowait rc = %d\n", 1098 // __FILE__, __LINE__, ptib->tib_ordinal,ret); fflush(stdout); // 10 Mar 07 SHL hang 1099 } 1092 1093 // if (type & WAIT) { 1094 // printf("%s %d DosStartession thread 0x%x rc = %d sess = %u pid = 0x%x\n", 1095 // __FILE__, __LINE__, ptib->tib_ordinal,ret, ulSessID, sessPID); fflush(stdout); // 10 Mar 07 SHL hang 1096 // } 1097 // else { 1098 // printf("%s %d DosStartession thread 0x%x nowait rc = %d\n", 1099 // __FILE__, __LINE__, ptib->tib_ordinal,ret); fflush(stdout); // 10 Mar 07 SHL hang 1100 // } 1100 1101 1101 1102 if (pszDirectory && *pszDirectory) … … 1113 1114 STATUSDATA sd; 1114 1115 // Could not create queue - fallback - fixme to be gone? 1115 // printf("%s %d waiting wo/termq\n", __FILE__, __LINE__); fflush(stdout); // 12 Mar 07 SHL hang1116 // printf("%s %d waiting wo/termq\n", __FILE__, __LINE__); fflush(stdout); // 12 Mar 07 SHL hang 1116 1117 1117 1118 memset(&sd, 0, sizeof(sd)); … … 1125 1126 break; 1126 1127 if (ctr > 10) { 1127 // printf("%s %d thread 0x%x showing slow sess %u pid 0x%x\n",1128 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID,sessPID); fflush(stdout); // 12 Mar 07 SHL1128 // printf("%s %d thread 0x%x showing slow sess %u pid 0x%x\n", 1129 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID,sessPID); fflush(stdout); // 12 Mar 07 SHL 1129 1130 ShowSession(hwnd, sessPID); // Show every 2 seconds 1130 1131 ctr = 0; … … 1145 1146 else { 1146 1147 if (ctr == 20) { 1147 // printf("%s %d thread 0x%x showing slow sess %u pid 0x%x\n",1148 // printf("%s %d thread 0x%x showing slow sess %u pid 0x%x\n", 1148 1149 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID,sessPID); fflush(stdout); 1149 1150 ShowSession(hwnd, sessPID); // Show long running session 1150 1151 } 1151 // printf("%s %d thread 0x%x waiting for slow sess %u pid 0x%x\n",1152 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID, sessPID); fflush(stdout);1153 1152 rc = DosReadQueue(hTermQ, &rq, &ulLength, (PPVOID)&pTermInfo, 0, 1154 1153 DCWW_WAIT, &bPriority, 0); … … 1162 1161 } 1163 1162 1164 // printf("%s %d DosReadQueue thread 0x%x sess %u sessRC %u rq.pid 0x%x rq.data 0x%x\n",1163 // printf("%s %d DosReadQueue thread 0x%x sess %u sessRC %u rq.pid 0x%x rq.data 0x%x\n", 1165 1164 // __FILE__, __LINE__,ptib->tib_ordinal,pTermInfo->usSessID,pTermInfo->usRC,rq.pid, rq.ulData); fflush(stdout); 1166 1165 1167 // might be looping here if confused about session id - fixme to ensure not possible?1168 1166 if (pTermInfo->usSessID == ulSessID) 1169 1167 break; // Our session is done … … 1172 1170 { 1173 1171 static ULONG ulLastSessID; 1174 // printf("%s %d requeue thread 0x%x our sess %u term sess %u term rc %u\n",1172 // printf("%s %d requeue thread 0x%x our sess %u term sess %u term rc %u\n", 1175 1173 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID,pTermInfo->usSessID,pTermInfo->usRC); fflush(stdout); 1176 1174 // fixme to be gone when no longer needed for debug? … … 1188 1186 1189 1187 ret = pTermInfo->usRC == 0; // Set 1 if rc 0 else 0 1190 // printf("%s %d thread 0x%x term for sess %u\n",1191 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID);fflush(stdout);1188 // printf("%s %d thread 0x%x term for sess %u\n", 1189 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID);fflush(stdout); 1192 1190 DosFreeMem(pTermInfo); 1193 1191 }
Note:
See TracChangeset
for help on using the changeset viewer.
