Changeset 1394 for trunk/dll/init.c
- Timestamp:
- Feb 5, 2009, 5:17:25 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/init.c
r1393 r1394 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 200 8Steven H. Levine9 Copyright (c) 2001, 2009 Steven H. Levine 10 10 11 11 11 Jun 02 SHL Add CheckVersion … … 64 64 28 Dec 08 GKY Check for LVM.EXE and remove Refresh removable media menu item as appropriate 65 65 28 Dec 08 GKY Rework partition submenu to gray out unavailable items (check for existence of files) 66 66 and have no default choice. 67 67 01 Jan 09 GKY Add option to rescan tree container on eject of removable media 68 68 03 Jan 09 GKY Avoid dbl scan of drive on startup by checking for first rescan drive. 69 69 03 Jan 09 GKY Check for system that is protectonly to gray out Dos/Win command lines and prevent 70 70 Dos/Win programs from being inserted into the execute dialog with message why. 71 71 11 Jan 09 GKY Move strings that shouldn't be translated (font names etc) compile time variables 72 03 Feb 09 SHL Switch to STRINGTABLE 72 73 73 74 ***********************************************************************/ … … 387 388 unsigned ulFlag) 388 389 { 389 CHAR *env;390 CHAR stringfile[CCHMAXPATH];391 FILESTATUS3 fsa;392 APIRET rc;393 394 390 switch (ulFlag) { 395 391 case 0: 396 392 FM3DllHandle = hModule; 397 strcpy(stringfile, "FM3RES.STR");398 env = getenv("FM3INI");399 if (env) {400 DosError(FERR_DISABLEHARDERR);401 rc = DosQueryPathInfo(env, FIL_STANDARD, &fsa, sizeof(fsa));402 if (!rc) {403 if (fsa.attrFile & FILE_DIRECTORY) {404 BldFullPathName(stringfile, env, "FM3RES.STR");405 DosError(FERR_DISABLEHARDERR);406 if (DosQueryPathInfo(stringfile, FIL_STANDARD, &fsa, sizeof(fsa)))407 strcpy(stringfile, "FM3RES.STR");408 }409 }410 }411 LoadStrings(stringfile);412 393 413 394 DosError(FERR_DISABLEHARDERR); … … 506 487 unsigned long ulFlag) 507 488 { 508 CHAR *env;509 CHAR stringfile[CCHMAXPATH];510 FILESTATUS3 fsa;511 APIRET rc;512 513 489 switch (ulFlag) { 514 490 case 0: … … 516 492 return 0UL; 517 493 FM3DllHandle = hModule; 518 strcpy(stringfile, "FM3RES.STR");519 env = getenv("FM3INI");520 if (env) {521 DosError(FERR_DISABLEHARDERR);522 rc = DosQueryPathInfo(env, FIL_STANDARD, &fsa, sizeof(fsa));523 if (!rc) {524 if (fsa.attrFile & FILE_DIRECTORY) {525 BldFullPathName(stringfile, env, "FM3RES.STR");526 DosError(FERR_DISABLEHARDERR);527 if (DosQueryPathInfo(stringfile, FIL_STANDARD, &fsa, sizeof(fsa)))528 strcpy(stringfile, "FM3RES.STR");529 }530 }531 }532 LoadStrings(stringfile);533 494 534 495 DosError(FERR_DISABLEHARDERR); … … 747 708 ULONG size; 748 709 749 if (!StringsLoaded()) {750 saymsg(MB_ENTER,751 HWND_DESKTOP,752 "Error",753 "FM3RES.STR isn't in right format, at least "754 "for this version of FM/2.");755 return FALSE;756 }757 758 710 strcpy(dllfile, "FM3RES"); 759 711 env = getenv("FM3INI"); … … 1051 1003 hini.idAccelTable = 0; 1052 1004 hini.idActionBar = 0; 1053 hini.pszHelpWindowTitle = GetPString(IDS_FM2HELPTITLETEXT);1005 hini.pszHelpWindowTitle = (PSZ)GetPString(IDS_FM2HELPTITLETEXT); 1054 1006 hini.fShowPanelId = CMIC_HIDE_PANEL_ID; 1055 1007 hini.pszHelpLibraryName = "FM3.HLP"; … … 1298 1250 if (!DosQueryAppType(GetCmdSpec(TRUE), &ulAppType)) { 1299 1251 ret = runemf2(SEPARATE | WINDOWED | BACKGROUND | MINIMIZED, 1300 1301 1252 (HWND) 0, pszSrcFile, __LINE__, NULL, NULL, 1253 "%s /C exit", GetCmdSpec(TRUE)); 1302 1254 if (ret == ERROR_SMG_INVALID_PROGRAM_TYPE) 1303 1255 fProtectOnly = TRUE; 1304 1256 } 1305 1257 else
Note:
See TracChangeset
for help on using the changeset viewer.