Changeset 1856 for trunk/dll/init.c
- Timestamp:
- Aug 18, 2015, 7:12:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/init.c
r1846 r1856 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 201 0Steven H. Levine9 Copyright (c) 2001, 2015 Steven H. Levine 10 10 11 11 11 Jun 02 SHL Add CheckVersion … … 211 211 #include "excputil.h" // xbeginthread 212 212 #include "systemf.h" // runemf2 213 213 214 #if 0 214 215 #define __PMPRINTF__ 215 216 #include "PMPRINTF.H" 216 217 #endif 218 217 219 extern int _CRT_init(void); 218 220 extern void _CRT_term(void); … … 236 238 HMTX hmtxFM2Delete; 237 239 HMTX hmtxFM2Globals; 240 241 #if 0 // 2015-08-04 SHL FIXME to be gone 238 242 HMTX hmtxScanning; 243 #endif // 2015-08-04 SHL FIXME to be gone 244 245 #if 0 // 2015-08-07 SHL FIXME to be gone 239 246 HMTX hmtxScanningLocalHD; 240 HMTX hmtxScanningLocal; 247 #endif // 2015-08-07 SHL FIXME to be gone 248 241 249 HMTX hmtxFiltering; 250 251 #if 0 // 2015-08-04 SHL FIXME to be gone 242 252 HEV hevTreeCnrScanComplete; 253 #endif // 2015-08-04 SHL FIXME to be gone 254 243 255 ULONG OS2ver[2]; 244 256 PFNWP PFNWPCnr; … … 249 261 ULONG ulTimeFmt; 250 262 ULONG ulDateFmt; 251 ULONG ulScanPostCnt;252 263 BOOL fDontSuggestAgain; 253 264 BOOL fInitialDriveScan; … … 712 723 } 713 724 714 715 716 717 718 719 720 721 722 725 rc = DosExitList(EXLST_ADD, DeInitFM3DLL); 726 if (rc) { 727 Dos_Error(MB_ENTER, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 728 "DosExitList"); 729 } 730 731 rcq = DosQueryProcAddr(FM3ModHandle, 1, "ResVersion", &pfnResVersion); 732 if (!rcq) 733 ret = pfnResVersion(&RVMajor, &RVMinor); 723 734 else { 724 735 ret = 0; … … 739 750 return FALSE; 740 751 } 752 741 753 #if 0 742 754 PmPrintfDisplayInterfaceVersionInfo(); 743 755 PmPrintfQueueNameThisProcess(NULL); 744 756 #endif 757 745 758 if (!*profile) 746 759 strcpy(profile, PCSZ_FM3DOTINI); … … 769 782 } 770 783 771 // Save the FM2 save directory name. This is the location of the ini, dat files etc.784 // Save the FM2 save directory name. This is the location of the ini, dat files etc. 772 785 rc = save_dir2(temp); 773 786 if (rc) { … … 885 898 } 886 899 900 if (!StartFleshWorkThread()) 901 return FALSE; 902 887 903 // timer messages are sent from a separate thread -- start it 888 904 if (!StartTimer()) { … … 1166 1182 sizeof(PVOID)); 1167 1183 1168 if (DosCreateMutexSem(NULL, &hmtxFM2Globals, 0L, FALSE)) 1184 rc = DosCreateMutexSem(NULL, &hmtxFM2Globals, 0L, FALSE); 1185 if (rc) { 1169 1186 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 1170 1187 PCSZ_DOSCREATEMUTEXSEM); 1188 } 1189 #if 0 // 2015-08-04 SHL FIXME to be gone 1171 1190 if (DosCreateMutexSem(NULL, &hmtxScanning, 0L, TRUE)) 1172 1191 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 1173 1192 PCSZ_DOSCREATEMUTEXSEM); 1174 if (DosCreateMutexSem(NULL, &hmtxScanningLocalHD, 0L, FALSE)) 1193 #endif // 2015-08-04 SHL FIXME to be gone 1194 #if 0 // 2015-08-07 SHL FIXME to be gone 1195 rc = DosCreateMutexSem(NULL, &hmtxScanningLocalHD, 0L, FALSE); 1196 if (rc) { 1175 1197 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 1176 1198 PCSZ_DOSCREATEMUTEXSEM); 1177 if (DosCreateMutexSem(NULL, &hmtxScanningLocal, 0L, FALSE))1178 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 1179 PCSZ_DOSCREATEMUTEXSEM);1180 if ( DosCreateMutexSem(NULL, &hmtxFM2Delete, 0L, FALSE))1199 } 1200 #endif // 2015-08-07 SHL FIXME to be gone 1201 rc = DosCreateMutexSem(NULL, &hmtxFM2Delete, 0L, FALSE); 1202 if (rc) { 1181 1203 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 1182 1204 PCSZ_DOSCREATEMUTEXSEM); 1183 if (DosCreateMutexSem(NULL, &hmtxFiltering, 0L, FALSE)) 1205 } 1206 rc = DosCreateMutexSem(NULL, &hmtxFiltering, 0L, FALSE); 1207 if (rc) { 1184 1208 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 1185 1209 PCSZ_DOSCREATEMUTEXSEM); 1186 if (DosCreateEventSem(NULL, &hevTreeCnrScanComplete, 0L, TRUE)) 1210 } 1211 #if 0 // 2015-08-04 SHL FIXME to be gone 1212 rc = DosCreateEventSem(NULL, &hevTreeCnrScanComplete, 0L, TRUE); 1213 if (rc) { 1187 1214 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 1188 1215 PCSZ_DOSCREATEEVENTSEM); 1216 } 1217 #endif // 2015-08-04 SHL FIXME to be gone 1189 1218 1190 1219 /** … … 1653 1682 PrfQueryProfileData(fmprof, FM3Str, "DontAskGzip", &fDontAskGzip, &size); 1654 1683 1684 // 2015-08-11 SHL FIXME debug 1685 DbgMsg(pszSrcFile, __LINE__, "ShowEnv %u SwitchTree %u SwitchTreeExpand %u SwitchTreeOnFocus %u CollapseFirst %u", fShowEnv, fSwitchTreeOnDirChg, fSwitchTreeExpand, fSwitchTreeOnFocus, fCollapseFirst); 1686 DbgMsg(pszSrcFile, __LINE__, "RScanLocal %u RScanRemote %u RScanVirtual %u RScanSlow RScanNoWrite %u", fRScanLocal, fRScanRemote, fRScanVirtual, fRScanSlow, fRScanNoWrite); 1687 1655 1688 LoadDetailsSwitches(PCSZ_DIRCNR, &dsDirCnrDefault, FALSE); 1656 1689
Note:
See TracChangeset
for help on using the changeset viewer.