Changeset 1333 for trunk/dll/init.c


Ignore:
Timestamp:
Dec 12, 2008, 10:56:35 PM (17 years ago)
Author:
Gregg Young
Message:

Added back the sizeofs for each PrfQueryProfileData call. Change the PrfQueryProfileData calls to PrfQueryProfileString for strings since MaxComLineStrg is set at run time not compile time and to eliminate the need for 2 PrfQueryProfileSize calls in RestoreDirCnrState.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1328 r1333  
    11851185                   sizeof(PVOID));
    11861186
    1187   if (DosCreateMutexSem("\\SEM\\GLOBAL1", &hmtxFM2Globals, 0L, FALSE))
     1187  if (DosCreateMutexSem(NULL, &hmtxFM2Globals, 0L, FALSE))
    11881188    Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    11891189              "DosCreateMutexSem");
    1190   if (DosCreateMutexSem("\\SEM\\DELETE1", &hmtxFM2Delete, 0L, FALSE))
     1190  if (DosCreateMutexSem(NULL, &hmtxFM2Delete, 0L, FALSE))
    11911191    Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    11921192              "DosCreateMutexSem");
     
    12101210  MaxComLineStrg = MAXCOMLINESTRGDEFAULT;
    12111211  AutoviewHeight = 48;
    1212   strcpy(printer, "PRN");
     1212  //strcpy(printer, "PRN");
    12131213  prnwidth = 80;
    12141214  prnlength = 66;
     
    12501250        MaxComLineStrg = 1024;
    12511251      MaxComLineChecked = TRUE;
    1252       PrfWriteProfileData(fmprof, appname, "MaxComLineChecked", &MaxComLineChecked, size);
     1252      PrfWriteProfileData(fmprof, appname, "MaxComLineChecked", &MaxComLineChecked, sizeof(BOOL));
    12531253    }
    12541254  }
     
    12901290  if (!pszTreeEnvVarList)
    12911291    return 0; //already complained
     1292  size = sizeof(BOOL);
    12921293  PrfQueryProfileData(fmprof, appname, "ShowTarget", &fShowTarget, &size);
     1294  size = sizeof(BOOL);
    12931295  PrfQueryProfileData(fmprof, appname, "CheckMM", &fCheckMM, &size);
     1296  size = sizeof(BOOL);
    12941297  PrfQueryProfileData(fmprof, appname, "ChangeTarget", &fChangeTarget, &size);
     1298  size = sizeof(BOOL);
    12951299  PrfQueryProfileData(fmprof, appname, "ConfirmTarget", &fConfirmTarget, &size);
     1300  size = sizeof(BOOL);
    12961301  PrfQueryProfileData(fmprof, FM3Str, "CustomFileDlg", &fCustomFileDlg, &size);
     1302  size = sizeof(BOOL);
    12971303  PrfQueryProfileData(fmprof, FM3Str, "SaveMiniCmds", &fSaveMiniCmds, &size);
     1304  size = sizeof(BOOL);
    12981305  PrfQueryProfileData(fmprof, appname, "SaveBigCmds", &fSaveBigCmds, &size);
     1306  size = sizeof(BOOL);
    12991307  PrfQueryProfileData(fmprof, appname, "NoFoldMenu", &fNoFoldMenu, &size);
     1308  size = sizeof(BOOL);
    13001309  PrfQueryProfileData(fmprof, FM3Str, "ThreadNotes", &fThreadNotes, &size);
     1310  size = sizeof(BOOL);
    13011311  PrfQueryProfileData(fmprof, FM3Str, "Prnpagenums", &prnpagenums, &size);
     1312  size = sizeof(BOOL);
    13021313  PrfQueryProfileData(fmprof, FM3Str, "Prnalt", &prnalt, &size);
     1314  size = sizeof(BOOL);
    13031315  PrfQueryProfileData(fmprof, FM3Str, "Prnformat", &prnformat, &size);
    1304   PrfQueryProfileData(fmprof, FM3Str, "Prnformfeedbefore",
    1305                       &prnformfeedbefore, &size);
    1306   PrfQueryProfileData(fmprof, FM3Str,
    1307                       "Prnformfeedafter",&prnformfeedafter, &size);
     1316  size = sizeof(BOOL);
     1317  PrfQueryProfileData(fmprof, FM3Str, "Prnformfeedbefore", &prnformfeedbefore, &size);
     1318  size = sizeof(BOOL);
     1319  PrfQueryProfileData(fmprof, FM3Str, "Prnformfeedafter",&prnformfeedafter, &size);
    13081320  size = sizeof(ULONG);
    13091321  PrfQueryProfileData(fmprof, FM3Str, "Prntabspaces", &prntabspaces, &size);
     1322  size = sizeof(ULONG);
    13101323  PrfQueryProfileData(fmprof, FM3Str, "Prnwidth", &prnwidth, &size);
     1324  size = sizeof(ULONG);
    13111325  PrfQueryProfileData(fmprof, FM3Str, "Prnlength", &prnlength, &size);
     1326  size = sizeof(ULONG);
    13121327  PrfQueryProfileData(fmprof, FM3Str, "Prntmargin", &prntmargin, &size);
     1328  size = sizeof(ULONG);
    13131329  PrfQueryProfileData(fmprof, FM3Str, "Prnbmargin", &prnbmargin, &size);
     1330  size = sizeof(ULONG);
    13141331  PrfQueryProfileData(fmprof, FM3Str, "Prnlmargin", &prnlmargin, &size);
     1332  size = sizeof(ULONG);
    13151333  PrfQueryProfileData(fmprof, FM3Str, "Prnrmargin", &prnrmargin, &size);
     1334  size = sizeof(ULONG);
    13161335  PrfQueryProfileData(fmprof, FM3Str, "Prnspacing", &prnspacing, &size);
    13171336  size = sizeof(BOOL);
    13181337  PrfQueryProfileData(fmprof, FM3Str, "NoDead", &fNoDead, &size);
     1338  size = sizeof(BOOL);
    13191339  PrfQueryProfileData(fmprof, FM3Str, "NoFinger", &fNoFinger, &size);
     1340  size = sizeof(BOOL);
    13201341  PrfQueryProfileData(fmprof, appname, "SwitchTree", &fSwitchTree, &size);
    1321   PrfQueryProfileData(fmprof, appname, "SwitchTreeExpand",
    1322                       &fSwitchTreeExpand, &size);
    1323   PrfQueryProfileData(fmprof, appname, "SwitchTreeOnFocus",
    1324                       &fSwitchTreeOnFocus, &size);
    1325   PrfQueryProfileData(fmprof, appname, "CollapseFirst",
    1326                       &fCollapseFirst, &size);
    1327   PrfQueryProfileData(fmprof, appname, "FilesInTree",
    1328                       &fFilesInTree, &size);
     1342  size = sizeof(BOOL);
     1343  PrfQueryProfileData(fmprof, appname, "SwitchTreeExpand", &fSwitchTreeExpand, &size);
     1344  size = sizeof(BOOL);
     1345  PrfQueryProfileData(fmprof, appname, "SwitchTreeOnFocus", &fSwitchTreeOnFocus, &size);
     1346  size = sizeof(BOOL);
     1347  PrfQueryProfileData(fmprof, appname, "CollapseFirst", &fCollapseFirst, &size);
     1348  size = sizeof(BOOL);
     1349  PrfQueryProfileData(fmprof, appname, "FilesInTree", &fFilesInTree, &size);
     1350  size = sizeof(BOOL);
    13291351  PrfQueryProfileData(fmprof, FM3Str, "TopDir", &fTopDir, &size);
     1352  size = sizeof(BOOL);
    13301353  PrfQueryProfileData(fmprof, FM3Str, "LookInDir", &fLookInDir, &size);
    1331   PrfQueryProfileString(fmprof, appname, "DefArc", NULL, szDefArc,
    1332                         sizeof(szDefArc));
     1354  PrfQueryProfileString(fmprof, appname, "DefArc", NULL, szDefArc, sizeof(szDefArc));
    13331355  size = sizeof(ULONG);
    13341356  PrfQueryProfileData(fmprof, FM3Str, "AutoviewHeight",
     
    13371359  PrfQueryProfileData(fmprof, FM3Str, "KeepCmdLine", &fKeepCmdLine, &size);
    13381360  if (strcmp(realappname, "FM/4")) {
     1361    size = sizeof(BOOL);
    13391362    PrfQueryProfileData(fmprof, FM3Str, "MoreButtons", &fMoreButtons, &size);
     1363    size = sizeof(BOOL);
    13401364    PrfQueryProfileData(fmprof, FM3Str, "Drivebar", &fDrivebar, &size);
    13411365  }
    13421366  else
    13431367    fDrivebar = fMoreButtons = TRUE;
     1368  size = sizeof(BOOL);
    13441369  PrfQueryProfileData(fmprof, appname, "NoSearch", &fNoSearch, &size);
     1370  size = sizeof(BOOL);
    13451371  PrfQueryProfileData(fmprof, appname, "GuessType", &fGuessType, &size);
     1372  size = sizeof(BOOL);
    13461373  PrfQueryProfileData(fmprof, appname, "ViewChild", &fViewChild, &size);
     1374  size = sizeof(BOOL);
    13471375  PrfQueryProfileData(fmprof, appname, "ShowEnv", &fShowEnv, &size);
    1348   size = MaxComLineStrg;
    1349   PrfQueryProfileData(fmprof, appname, "TreeEnvVarList", pszTreeEnvVarList, &size);
     1376  PrfQueryProfileString(fmprof, appname, "TreeEnvVarList", "PATH;DPATH;LIBPATH;HELP;BOOKSHELF;",
     1377                        pszTreeEnvVarList, MaxComLineStrg);
    13501378  size = sizeof(BOOL);
    13511379  PrfQueryProfileData(fmprof, appname, "LeaveTree", &fLeaveTree, &size);
     1380  size = sizeof(BOOL);
    13521381  PrfQueryProfileData(fmprof, FM3Str, "Comments", &fComments, &size);
    13531382  size = sizeof(ULONG);
     
    13561385    fwsAnimate = WS_ANIMATE;
    13571386  size = sizeof(BOOL);
    1358   PrfQueryProfileData(fmprof, appname, "SelectedAlways",
    1359                       &fSelectedAlways, &size);
     1387  PrfQueryProfileData(fmprof, appname, "SelectedAlways", &fSelectedAlways, &size);
     1388  size = sizeof(BOOL);
    13601389  PrfQueryProfileData(fmprof, FM3Str, "ToolbarHelp", &fToolbarHelp, &size);
     1390  size = sizeof(BOOL);
    13611391  PrfQueryProfileData(fmprof, FM3Str, "OtherHelp", &fOtherHelp, &size);
     1392  size = sizeof(BOOL);
    13621393  PrfQueryProfileData(fmprof, FM3Str, "DrivebarHelp", &fDrivebarHelp, &size);
     1394  size = sizeof(BOOL);
    13631395  PrfQueryProfileData(fmprof, appname, "AutoAddDirs", &fAutoAddDirs, &size);
    1364   PrfQueryProfileData(fmprof, appname,
    1365                       "AutoAddAllDirs", &fAutoAddAllDirs, &size);
    1366   PrfQueryProfileData(fmprof, FM3Str, "UserListSwitches",
    1367                       &fUserListSwitches, &size);
    1368   PrfQueryProfileData(fmprof, appname, "UseNewViewer",
    1369                       &fUseNewViewer, &size);
    1370   PrfQueryProfileData(fmprof, appname, "DefaultDeletePerm",
    1371                       &fDefaultDeletePerm, &size);
    1372   PrfQueryProfileData(fmprof, FM3Str, "ExternalINIs",
    1373                       &fExternalINIs, &size);
    1374   PrfQueryProfileData(fmprof, FM3Str, "ExternalCollector",
    1375                       &fExternalCollector, &size);
    1376   PrfQueryProfileData(fmprof, FM3Str, "ExternalArcboxes",
    1377                       &fExternalArcboxes, &size);
    1378   PrfQueryProfileData(fmprof, FM3Str, "ExternalViewer",
    1379                       &fExternalViewer, &size);
    1380   PrfQueryProfileData(fmprof, FM3Str, "UseQProcStat",
    1381                       &fUseQProcStat, &size);
    1382   PrfQueryProfileData(fmprof, FM3Str, "UseQSysState",
    1383                       &fUseQSysState, &size);
     1396  size = sizeof(BOOL);
     1397  PrfQueryProfileData(fmprof, appname, "AutoAddAllDirs", &fAutoAddAllDirs, &size);
     1398  size = sizeof(BOOL);
     1399  PrfQueryProfileData(fmprof, FM3Str, "UserListSwitches", &fUserListSwitches, &size);
     1400  size = sizeof(BOOL);
     1401  PrfQueryProfileData(fmprof, appname, "UseNewViewer", &fUseNewViewer, &size);
     1402  size = sizeof(BOOL);
     1403  PrfQueryProfileData(fmprof, appname, "DefaultDeletePerm", &fDefaultDeletePerm, &size);
     1404  size = sizeof(BOOL);
     1405  PrfQueryProfileData(fmprof, FM3Str, "ExternalINIs", &fExternalINIs, &size);
     1406  size = sizeof(BOOL);
     1407  PrfQueryProfileData(fmprof, FM3Str, "ExternalCollector", &fExternalCollector, &size);
     1408  size = sizeof(BOOL);
     1409  PrfQueryProfileData(fmprof, FM3Str, "ExternalArcboxes", &fExternalArcboxes, &size);
     1410  size = sizeof(BOOL);
     1411  PrfQueryProfileData(fmprof, FM3Str, "ExternalViewer", &fExternalViewer, &size);
     1412  size = sizeof(BOOL);
     1413  PrfQueryProfileData(fmprof, FM3Str, "UseQProcStat", &fUseQProcStat, &size);
     1414  size = sizeof(BOOL);
     1415  PrfQueryProfileData(fmprof, FM3Str, "UseQSysState", &fUseQSysState, &size);
     1416  size = sizeof(BOOL);
    13841417  PrfQueryProfileData(fmprof, FM3Str, "DataMin", &fDataMin, &size);
     1418  size = sizeof(BOOL);
    13851419  PrfQueryProfileData(fmprof, appname, "DataToFore", &fDataToFore, &size);
    1386   PrfQueryProfileData(fmprof, appname, "DataShowDrives",
    1387                       &fDataShowDrives, &size);
    1388   PrfQueryProfileData(fmprof, appname, "DataInclRemote",
    1389                       &fDataInclRemote, &size);
     1420  size = sizeof(BOOL);
     1421  PrfQueryProfileData(fmprof, appname, "DataShowDrives", &fDataShowDrives, &size);
     1422  size = sizeof(BOOL);
     1423  PrfQueryProfileData(fmprof, appname, "DataInclRemote", &fDataInclRemote, &size);
     1424  size = sizeof(BOOL);
    13901425  PrfQueryProfileData(fmprof, FM3Str, "SplitStatus", &fSplitStatus, &size);
    1391   PrfQueryProfileData(fmprof, appname, "FolderAfterExtract",
    1392                       &fFolderAfterExtract, &size);
     1426  size = sizeof(BOOL);
     1427  PrfQueryProfileData(fmprof, appname, "FolderAfterExtract", &fFolderAfterExtract, &size);
     1428  size = sizeof(BOOL);
    13931429  PrfQueryProfileData(fmprof, FM3Str, "DullDatabar", &fDullMin, &size);
     1430  size = sizeof(BOOL);
    13941431  PrfQueryProfileData(fmprof, appname, "BlueLED", &fBlueLED, &size);
    1395   PrfQueryProfileData(fmprof, appname, "ConfirmDelete",
    1396                       &fConfirmDelete, &size);
     1432  size = sizeof(BOOL);
     1433  PrfQueryProfileData(fmprof, appname, "ConfirmDelete", &fConfirmDelete, &size);
     1434  size = sizeof(BOOL);
    13971435  PrfQueryProfileData(fmprof, FM3Str, "SaveState", &fSaveState, &size);
    13981436  if (fSaveState) {
     
    14201458  size = sizeof(BOOL);
    14211459  PrfQueryProfileData(fmprof, appname, "SyncUpdates", &fSyncUpdates, &size);
     1460  size = sizeof(BOOL);
    14221461  PrfQueryProfileData(fmprof, appname, "LoadSubject", &fLoadSubject, &size);
     1462  size = sizeof(BOOL);
    14231463  PrfQueryProfileData(fmprof, appname, "UnHilite", &fUnHilite, &size);
     1464  size = sizeof(BOOL);
    14241465  PrfQueryProfileData(fmprof, FM3Str, "TileBackwards", &fTileBackwards, &size);
     1466  size = sizeof(BOOL);
    14251467  PrfQueryProfileData(fmprof, appname, "LoadLongname", &fLoadLongnames, &size);
     1468  size = sizeof(BOOL);
    14261469  PrfQueryProfileData(fmprof, appname, "VerifyWrites", &fVerify, &size);
    14271470  DosSetVerify(fVerify);
     1471  size = sizeof(BOOL);
    14281472  PrfQueryProfileData(fmprof, appname, "DontMoveMouse", &fDontMoveMouse, &size);
     1473  size = sizeof(BOOL);
    14291474  PrfQueryProfileData(fmprof, appname, "NoIconsFiles", &fNoIconsFiles, &size);
     1475  size = sizeof(BOOL);
    14301476  PrfQueryProfileData(fmprof, appname, "NoIconsDirs", &fNoIconsDirs, &size);
     1477  size = sizeof(BOOL);
    14311478  PrfQueryProfileData(fmprof, appname, "ForceUpper", &fForceUpper, &size);
     1479  size = sizeof(BOOL);
    14321480  PrfQueryProfileData(fmprof, appname, "ForceLower", &fForceLower, &size);
     1481  size = sizeof(BOOL);
    14331482  PrfQueryProfileData(fmprof, FM3Str, "TextTools", &fTextTools, &size);
     1483  size = sizeof(BOOL);
    14341484  PrfQueryProfileData(fmprof, FM3Str, "ToolTitles", &fToolTitles, &size);
     1485  size = sizeof(BOOL);
    14351486  PrfQueryProfileData(fmprof, appname, "DoubleClickOpens", &fDCOpens, &size);
     1487  size = sizeof(BOOL);
    14361488  PrfQueryProfileData(fmprof, appname, "LinkSetsIcon", &fLinkSetsIcon, &size);
    14371489  size = sizeof(INT);
    14381490  PrfQueryProfileData(fmprof, appname, "Sort", &sortFlags, &size);
     1491  size = sizeof(INT);
    14391492  PrfQueryProfileData(fmprof, appname, "TreeSort", &TreesortFlags, &size);
    1440   PrfQueryProfileData(fmprof, appname,
    1441                       "CollectorSort", &CollectorsortFlags, &size);
    1442   size = sizeof(targetdir);
    1443   PrfQueryProfileData(fmprof, appname, "Targetdir", targetdir, &size);
     1493  size = sizeof(INT);
     1494  PrfQueryProfileData(fmprof, appname, "CollectorSort", &CollectorsortFlags, &size);
     1495  PrfQueryProfileString(fmprof, appname, "Targetdir", NULL, targetdir, sizeof(targetdir));
    14441496  if (!IsValidDir(targetdir))
    14451497    *targetdir = 0;
    1446   size = sizeof(extractpath);
    1447   PrfQueryProfileData(fmprof, appname, "ExtractPath", extractpath, &size);
     1498  PrfQueryProfileString(fmprof, appname, "ExtractPath", NULL, extractpath, sizeof(extractpath));
    14481499  size = sizeof(BOOL);
    14491500  PrfQueryProfileData(fmprof, FM3Str, "FileNamePathCnr", &fFileNameCnrPath, &size);
    1450   size = sizeof(printer);
    1451   PrfQueryProfileData(fmprof, appname, "Printer", printer, &size);
    1452   size = MaxComLineStrg;
    1453   PrfQueryProfileData(fmprof, appname, "DirCompare", dircompare,
    1454                       &size);
    1455   size = MaxComLineStrg;
    1456   PrfQueryProfileData(fmprof, appname, "Viewer", viewer, &size);
    1457   size = MaxComLineStrg;
    1458   PrfQueryProfileData(fmprof, appname, "Editor", editor, &size);
    1459   size = MaxComLineStrg;
    1460   PrfQueryProfileData(fmprof, appname, "BinView", binview, &size);
    1461   size = MaxComLineStrg;
    1462   PrfQueryProfileData(fmprof, appname, "BinEd", bined, &size);
    1463   size = MaxComLineStrg;
    1464   PrfQueryProfileData(fmprof, appname, "Compare", compare, &size);
    1465   size = MaxComLineStrg;
    1466   PrfQueryProfileData(fmprof, appname, "Virus", virus, &size);
     1501  PrfQueryProfileString(fmprof, appname, "Printer", "PRN", printer, sizeof(printer));
     1502  PrfQueryProfileString(fmprof, appname, "DirCompare", NULL, dircompare, MaxComLineStrg);
     1503  PrfQueryProfileString(fmprof, appname, "Viewer", NULL, viewer, MaxComLineStrg);
     1504  PrfQueryProfileString(fmprof, appname, "Editor", NULL, editor, MaxComLineStrg);
     1505  PrfQueryProfileString(fmprof, appname, "BinView", NULL, binview, MaxComLineStrg);
     1506  PrfQueryProfileString(fmprof, appname, "BinEd", NULL, bined, MaxComLineStrg);
     1507  PrfQueryProfileString(fmprof, appname, "Compare", NULL, compare, MaxComLineStrg);
     1508  PrfQueryProfileString(fmprof, appname, "Virus", NULL, virus, MaxComLineStrg);
    14671509  size = sizeof(BOOL);
    14681510  PrfQueryProfileData(fmprof, appname, "FtpRunWPSDefault", &fFtpRunWPSDefault, &size);
    1469   size = MaxComLineStrg;
    1470   PrfQueryProfileData(fmprof, appname, "FTPRun", ftprun, &size);
     1511  PrfQueryProfileString(fmprof, appname, "FTPRun", NULL, ftprun, MaxComLineStrg);
    14711512  if (!*ftprun)
    14721513    fFtpRunWPSDefault = TRUE;
    14731514  size = sizeof(BOOL);
    14741515  PrfQueryProfileData(fmprof, appname, "HttpRunWPSDefault", &fHttpRunWPSDefault, &size);
    1475   size = MaxComLineStrg;
    1476   PrfQueryProfileData(fmprof, appname, "HTTPRun", httprun, &size);
     1516  PrfQueryProfileString(fmprof, appname, "HTTPRun", NULL, httprun, MaxComLineStrg);
    14771517  if (!*httprun)
    14781518    fHttpRunWPSDefault = TRUE;
    1479   size = MaxComLineStrg;
    1480   PrfQueryProfileData(fmprof, appname, "MailRun", mailrun, &size);
    1481   size = sizeof(ftprundir);
    1482   PrfQueryProfileData(fmprof, appname, "FtpRunDir", ftprundir, &size);
    1483   size = sizeof(httprundir);
    1484   PrfQueryProfileData(fmprof, appname, "HttpRunDir", httprundir, &size);
    1485   size = sizeof(mailrundir);
    1486   PrfQueryProfileData(fmprof, appname, "MailRunDir", mailrundir, &size);
    1487   size = sizeof(lasttoolbar);
    1488   PrfQueryProfileData(fmprof, appname, "LastToolbar", lasttoolbar,
    1489                       &size);
    1490   size = sizeof(BOOL);
    1491   PrfQueryProfileData(fmprof, appname, "LibPathStrictHttpRun", &fLibPathStrictHttpRun,
    1492                       &size);
    1493   PrfQueryProfileData(fmprof, appname, "LibPathStrictFtpRun", &fLibPathStrictFtpRun,
    1494                       &size);
    1495   PrfQueryProfileData(fmprof, appname, "LibPathStrictMailRun", &fLibPathStrictMailRun,
    1496                       &size);
    1497   PrfQueryProfileData(fmprof, appname, "NoMailtoMailRun", &fNoMailtoMailRun,
    1498                       &size);
    1499   PrfQueryProfileData(fmprof, appname, "FollowTree", &fFollowTree,
    1500                       &size);
    1501   PrfQueryProfileData(fmprof, appname, "StartMaximized",
    1502                       &fStartMaximized, &size);
     1519  PrfQueryProfileString(fmprof, appname, "MailRun", NULL, mailrun, MaxComLineStrg);
     1520  PrfQueryProfileString(fmprof, appname, "FtpRunDir", NULL, ftprundir, sizeof(ftprundir));
     1521  PrfQueryProfileString(fmprof, appname, "HttpRunDir", NULL, httprundir, sizeof(httprundir));
     1522  PrfQueryProfileString(fmprof, appname, "MailRunDir", NULL, mailrundir, sizeof(mailrundir));
     1523  PrfQueryProfileString(fmprof, appname, "LastToolbar", NULL, lasttoolbar, sizeof(lasttoolbar));
     1524  size = sizeof(BOOL);
     1525  PrfQueryProfileData(fmprof, appname, "LibPathStrictHttpRun", &fLibPathStrictHttpRun, &size);
     1526  size = sizeof(BOOL);
     1527  PrfQueryProfileData(fmprof, appname, "LibPathStrictFtpRun", &fLibPathStrictFtpRun, &size);
     1528  size = sizeof(BOOL);
     1529  PrfQueryProfileData(fmprof, appname, "LibPathStrictMailRun", &fLibPathStrictMailRun, &size);
     1530  size = sizeof(BOOL);
     1531  PrfQueryProfileData(fmprof, appname, "NoMailtoMailRun", &fNoMailtoMailRun, &size);
     1532  size = sizeof(BOOL);
     1533  PrfQueryProfileData(fmprof, appname, "FollowTree", &fFollowTree, &size);
     1534  size = sizeof(BOOL);
     1535  PrfQueryProfileData(fmprof, appname, "StartMaximized", &fStartMaximized, &size);
    15031536  if (!fStartMaximized) {
    1504     PrfQueryProfileData(fmprof, appname, "StartMinimized",
    1505                         &fStartMinimized, &size);
    1506   }
     1537    size = sizeof(BOOL);
     1538    PrfQueryProfileData(fmprof, appname, "StartMinimized", &fStartMinimized, &size);
     1539  }
     1540  size = sizeof(BOOL);
    15071541  PrfQueryProfileData(fmprof, appname, "DefaultCopy", &fCopyDefault, &size);
     1542  size = sizeof(BOOL);
    15081543  PrfQueryProfileData(fmprof, appname, "IdleCopy", &fRealIdle, &size);
    1509   PrfQueryProfileData(fmprof, appname, "ArcStuffVisible",
    1510                       &fArcStuffVisible, &size);
     1544  size = sizeof(BOOL);
     1545  PrfQueryProfileData(fmprof, appname, "ArcStuffVisible", &fArcStuffVisible, &size);
     1546  size = sizeof(BOOL);
    15111547  PrfQueryProfileData(fmprof, FM3Str, "NoTreeGap", &fNoTreeGap, &size);
    1512   PrfQueryProfileData(fmprof, FM3Str, "VTreeOpensWPS",
    1513                       &fVTreeOpensWPS, &size);
     1548  size = sizeof(BOOL);
     1549  PrfQueryProfileData(fmprof, FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS, &size);
     1550  size = sizeof(BOOL);
    15141551  PrfQueryProfileData(fmprof, appname, "RemoteBug", &fRemoteBug, &size);
    1515   PrfQueryProfileData(fmprof, appname, "Drag&DropDlg",
    1516                       &fDragndropDlg, &size);
     1552  size = sizeof(BOOL);
     1553  PrfQueryProfileData(fmprof, appname, "Drag&DropDlg", &fDragndropDlg, &size);
     1554  size = sizeof(BOOL);
    15171555  PrfQueryProfileData(fmprof, FM3Str, "UserComboBox", &fUserComboBox, &size);
     1556  size = sizeof(BOOL);
    15181557  PrfQueryProfileData(fmprof, FM3Str, "MinDirOnOpen", &fMinOnOpen, &size);
    1519   PrfQueryProfileData(fmprof, appname, "QuickArcFind",
    1520                       &fQuickArcFind, &size);
    1521   PrfQueryProfileData(fmprof, FM3Str, "NoRemovableScan",
    1522                       &fNoRemovableScan, &size);
     1558  size = sizeof(BOOL);
     1559  PrfQueryProfileData(fmprof, appname, "QuickArcFind", &fQuickArcFind, &size);
     1560  size = sizeof(BOOL);
     1561  PrfQueryProfileData(fmprof, FM3Str, "NoRemovableScan", &fNoRemovableScan, &size);
    15231562  size = sizeof(ULONG);
    1524   PrfQueryProfileData(fmprof, FM3Str, "NoBrokenNotify",
    1525                       &NoBrokenNotify, &size);
    1526   PrfQueryProfileData(fmprof, appname, "ContainerType", &ulCnrType,
    1527                       &size);
     1563  PrfQueryProfileData(fmprof, FM3Str, "NoBrokenNotify", &NoBrokenNotify, &size);
     1564  size = sizeof(ULONG);
     1565  PrfQueryProfileData(fmprof, appname, "ContainerType", &ulCnrType, &size);
     1566  size = sizeof(ULONG);
    15281567  PrfQueryProfileData(fmprof, appname, "FilesToGet", &FilesToGet, &size);
    15291568  if (FilesToGet < FILESTOGET_MIN)
     
    15331572  size = sizeof(BOOL);
    15341573  PrfQueryProfileData(fmprof, FM3Str, "AutoView", &fAutoView, &size);
     1574  size = sizeof(BOOL);
    15351575  PrfQueryProfileData(fmprof, FM3Str, "FM2Deletes", &fFM2Deletes, &size);
     1576  size = sizeof(BOOL);
    15361577  PrfQueryProfileData(fmprof, FM3Str, "TrashCan", &fTrashCan, &size);
    15371578
Note: See TracChangeset for help on using the changeset viewer.