Changeset 1328 for trunk/dll


Ignore:
Timestamp:
Dec 9, 2008, 5:28:40 AM (17 years ago)
Author:
Gregg Young
Message:

Code cleanup replace sizeof calls for threaded drive scans

Location:
trunk/dll
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r1326 r1328  
    12671267      CHAR s[80];
    12681268      ULONG flags = 0;
     1269      ULONG size = sizeof(ULONG);
    12691270
    12701271      *szDrive = (CHAR)x + 'A';         // Build path spec
    12711272
    12721273      sprintf(s, "%c.DriveFlags", toupper(*szDrive));
    1273       if (PrfQueryProfileData(fmprof, appname, s, &flags, &sizeUlong)) {
     1274      if (PrfQueryProfileData(fmprof, appname, s, &flags, &size)) {
    12741275        driveflags[toupper(*szDrive) - 'A'] |= flags;
    12751276      }
  • trunk/dll/init.c

    r1326 r1328  
    162162HMTX hmtxFM2Globals;
    163163ULONG OS2ver[2];
    164 ULONG sizeBool;
    165 ULONG sizeUlong;
    166 ULONG sizeInt;
    167 ULONG sizePvoid;
    168164PFNWP PFNWPCnr;
    169165PFNWP PFNWPMLE;
     
    712708  ULONG size;
    713709
    714   sizeBool = sizeof(BOOL);
    715   sizeUlong = sizeof(ULONG);
    716   sizeInt = sizeof(INT);
    717   sizePvoid = sizeof(PVOID);
    718710  if (!StringsLoaded()) {
    719711    saymsg(MB_ENTER,
     
    995987  FindSwapperDat();
    996988
    997   //size = sizeof(BOOL);
     989  size = sizeof(BOOL);
    998990  PrfQueryProfileData(fmprof,
    999991                      FM3Str,
    1000992                      "SeparateParms",
    1001993                      &fSeparateParms,
    1002                       &sizeBool);
     994                      &size);
    1003995  if (!fSeparateParms)
    1004996    strcpy(appname, FM3Str);
     
    10671059                   WC_MAINWND,
    10681060                   MainWndProc,
    1069                    CS_SIZEREDRAW | CS_CLIPCHILDREN, sizePvoid * 8);
     1061                   CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 8);
    10701062  WinRegisterClass(hab,
    10711063                   WC_MAINWND2,
    10721064                   MainWndProc2,
    1073                    CS_SIZEREDRAW | CS_CLIPCHILDREN, sizePvoid * 4);
     1065                   CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 4);
    10741066  WinRegisterClass(hab,
    10751067                   WC_TREECONTAINER,
    10761068                   TreeClientWndProc,
    1077                    CS_SIZEREDRAW | CS_CLIPCHILDREN, sizePvoid * 2);
     1069                   CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 2);
    10781070  WinRegisterClass(hab,
    10791071                   WC_DIRCONTAINER,
    10801072                   DirClientWndProc,
    1081                    CS_SIZEREDRAW | CS_CLIPCHILDREN, sizePvoid * 2);
     1073                   CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 2);
    10821074  WinRegisterClass(hab,
    10831075                   WC_COLLECTOR,
    10841076                   CollectorClientWndProc,
    1085                    CS_SIZEREDRAW | CS_CLIPCHILDREN, sizePvoid * 2);
     1077                   CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 2);
    10861078  WinRegisterClass(hab,
    10871079                   WC_ARCCONTAINER,
    10881080                   ArcClientWndProc,
    1089                    CS_SIZEREDRAW | CS_CLIPCHILDREN, sizePvoid * 2);
     1081                   CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 2);
    10901082  WinRegisterClass(hab,
    10911083                   WC_MLEEDITOR,
    10921084                   MLEEditorProc,
    1093                    CS_SIZEREDRAW | CS_CLIPCHILDREN, sizePvoid * 2);
     1085                   CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 2);
    10941086  WinRegisterClass(hab,
    10951087                   WC_INIEDITOR,
    10961088                   IniProc,
    1097                    CS_SIZEREDRAW | CS_CLIPCHILDREN, sizePvoid * 2);
     1089                   CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID) * 2);
    10981090  WinRegisterClass(hab,
    10991091                   WC_TOOLBACK,
    11001092                   ToolBackProc,
    11011093                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1102                    sizePvoid);
     1094                   sizeof(PVOID));
    11031095  WinRegisterClass(hab,
    11041096                   WC_DRIVEBACK,
    11051097                   DriveBackProc,
    11061098                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1107                    sizePvoid);
     1099                   sizeof(PVOID));
    11081100  WinRegisterClass(hab,
    11091101                   WC_SEEALL,
    11101102                   SeeAllWndProc,
    1111                    CS_SIZEREDRAW | CS_CLIPCHILDREN, sizePvoid);
     1103                   CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID));
    11121104  WinRegisterClass(hab,
    11131105                   WC_NEWVIEW,
    11141106                   ViewWndProc,
    1115                    CS_SIZEREDRAW | CS_CLIPCHILDREN, sizePvoid);
     1107                   CS_SIZEREDRAW | CS_CLIPCHILDREN, sizeof(PVOID));
    11161108  WinRegisterClass(hab,
    11171109                   WC_TOOLBUTTONS,
    11181110                   ChildButtonProc,
    11191111                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1120                    sizePvoid);
     1112                   sizeof(PVOID));
    11211113  WinRegisterClass(hab,
    11221114                   WC_DRIVEBUTTONS,
    11231115                   DriveProc,
    11241116                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1125                    sizePvoid);
     1117                   sizeof(PVOID));
    11261118  WinRegisterClass(hab,
    11271119                   WC_BUBBLE,
    11281120                   BubbleProc,
    11291121                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1130                    sizeUlong * 2);
     1122                   sizeof(ULONG) * 2);
    11311123  WinRegisterClass(hab,
    11321124                   WC_STATUS,
    11331125                   StatusProc,
    11341126                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1135                    sizeUlong);
     1127                   sizeof(ULONG));
    11361128  WinRegisterClass(hab,
    11371129                   WC_DIRSTATUS,
    11381130                   DirTextProc,
    11391131                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1140                    sizeUlong);
     1132                   sizeof(ULONG));
    11411133  WinRegisterClass(hab,
    11421134                   WC_TREESTATUS,
    11431135                   TreeStatProc,
    11441136                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1145                    sizeUlong);
     1137                   sizeof(ULONG));
    11461138  WinRegisterClass(hab,
    11471139                   WC_ARCSTATUS,
    11481140                   ArcTextProc,
    11491141                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1150                    sizeUlong);
     1142                   sizeof(ULONG));
    11511143  WinRegisterClass(hab,
    11521144                   WC_COLSTATUS,
    11531145                   CollectorTextProc,
    11541146                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1155                    sizeUlong);
     1147                   sizeof(ULONG));
    11561148  WinRegisterClass(hab,
    11571149                   WC_SEESTATUS,
    11581150                   SeeStatusProc,
    11591151                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1160                    sizeUlong);
     1152                   sizeof(ULONG));
    11611153  WinRegisterClass(hab,
    11621154                   WC_VIEWSTATUS,
    11631155                   ViewStatusProc,
    11641156                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1165                    sizeUlong);
     1157                   sizeof(ULONG));
    11661158  WinRegisterClass(hab,
    11671159                   WC_ERRORWND,
    11681160                   NotifyWndProc,
    11691161                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1170                    sizePvoid);
     1162                   sizeof(PVOID));
    11711163  WinRegisterClass(hab,
    11721164                   WC_MINITIME,
    11731165                   MiniTimeProc,
    11741166                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1175                    sizePvoid * 2);
     1167                   sizeof(PVOID) * 2);
    11761168  WinRegisterClass(hab,
    11771169                   WC_DATABAR,
    1178                    DataProc, CS_SIZEREDRAW, sizePvoid);
     1170                   DataProc, CS_SIZEREDRAW, sizeof(PVOID));
    11791171  WinRegisterClass(hab,
    11801172                   WC_TREEOPENBUTTON,
    11811173                   OpenButtonProc,
    11821174                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1183                    sizePvoid);
     1175                   sizeof(PVOID));
    11841176  WinRegisterClass(hab,
    11851177                   WC_AUTOVIEW,
    11861178                   AutoViewProc,
    11871179                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1188                    sizePvoid);
     1180                   sizeof(PVOID));
    11891181  WinRegisterClass(hab,
    11901182                   WC_LED,
    11911183                   LEDProc,
    11921184                   CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP,
    1193                    sizePvoid);
     1185                   sizeof(PVOID));
    11941186
    11951187  if (DosCreateMutexSem("\\SEM\\GLOBAL1", &hmtxFM2Globals, 0L, FALSE))
     
    11991191    Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    12001192              "DosCreateMutexSem");
    1201   /*if (DosCreateEventSem("\\SEM32\\DRIVESCAN", &DriveScanStart, 0L, FALSE))
    1202     Dos_Error(MB_ENTER, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    1203               GetPString(IDS_CREATESEMFAILED));
    1204   fInitialDriveScan = TRUE;*/
    12051193
    12061194  /*
     
    12461234
    12471235  // load preferences from profile (INI) file
    1248   PrfQueryProfileData(fmprof, appname, "MaxComLineStrg", &MaxComLineStrg, &sizeUlong);
     1236  size = sizeof(ULONG);
     1237  PrfQueryProfileData(fmprof, appname, "MaxComLineStrg", &MaxComLineStrg, &size);
    12491238  // Give user one chance to reset the default command line length to 1024 (4os2's unexpanded max)
    12501239  if (MaxComLineStrg == 2048) {
    12511240    BOOL MaxComLineChecked = FALSE;
    12521241
    1253     PrfQueryProfileData(fmprof, appname, "MaxComLineChecked", &MaxComLineChecked, &sizeBool);
     1242    size = sizeof(BOOL);
     1243    PrfQueryProfileData(fmprof, appname, "MaxComLineChecked", &MaxComLineChecked, &size);
    12541244    if (!MaxComLineChecked) {
    12551245      ret = saymsg(MB_YESNO,
     
    12601250        MaxComLineStrg = 1024;
    12611251      MaxComLineChecked = TRUE;
    1262       PrfWriteProfileData(fmprof, appname, "MaxComLineChecked", &MaxComLineChecked, sizeBool);
     1252      PrfWriteProfileData(fmprof, appname, "MaxComLineChecked", &MaxComLineChecked, size);
    12631253    }
    12641254  }
     
    13001290  if (!pszTreeEnvVarList)
    13011291    return 0; //already complained
    1302   PrfQueryProfileData(fmprof, appname, "ShowTarget", &fShowTarget, &sizeBool);
    1303   PrfQueryProfileData(fmprof, appname, "CheckMM", &fCheckMM, &sizeBool);
    1304   PrfQueryProfileData(fmprof, appname, "ChangeTarget", &fChangeTarget, &sizeBool);
    1305   PrfQueryProfileData(fmprof, appname, "ConfirmTarget", &fConfirmTarget, &sizeBool);
    1306   PrfQueryProfileData(fmprof, FM3Str, "CustomFileDlg", &fCustomFileDlg, &sizeBool);
    1307   PrfQueryProfileData(fmprof, FM3Str, "SaveMiniCmds", &fSaveMiniCmds, &sizeBool);
    1308   PrfQueryProfileData(fmprof, appname, "SaveBigCmds", &fSaveBigCmds, &sizeBool);
    1309   PrfQueryProfileData(fmprof, appname, "NoFoldMenu", &fNoFoldMenu, &sizeBool);
    1310   PrfQueryProfileData(fmprof, FM3Str, "ThreadNotes", &fThreadNotes, &sizeBool);
    1311   PrfQueryProfileData(fmprof, FM3Str, "Prnpagenums", &prnpagenums, &sizeBool);
    1312   PrfQueryProfileData(fmprof, FM3Str, "Prnalt", &prnalt, &sizeBool);
    1313   PrfQueryProfileData(fmprof, FM3Str, "Prnformat", &prnformat, &sizeBool);
     1292  PrfQueryProfileData(fmprof, appname, "ShowTarget", &fShowTarget, &size);
     1293  PrfQueryProfileData(fmprof, appname, "CheckMM", &fCheckMM, &size);
     1294  PrfQueryProfileData(fmprof, appname, "ChangeTarget", &fChangeTarget, &size);
     1295  PrfQueryProfileData(fmprof, appname, "ConfirmTarget", &fConfirmTarget, &size);
     1296  PrfQueryProfileData(fmprof, FM3Str, "CustomFileDlg", &fCustomFileDlg, &size);
     1297  PrfQueryProfileData(fmprof, FM3Str, "SaveMiniCmds", &fSaveMiniCmds, &size);
     1298  PrfQueryProfileData(fmprof, appname, "SaveBigCmds", &fSaveBigCmds, &size);
     1299  PrfQueryProfileData(fmprof, appname, "NoFoldMenu", &fNoFoldMenu, &size);
     1300  PrfQueryProfileData(fmprof, FM3Str, "ThreadNotes", &fThreadNotes, &size);
     1301  PrfQueryProfileData(fmprof, FM3Str, "Prnpagenums", &prnpagenums, &size);
     1302  PrfQueryProfileData(fmprof, FM3Str, "Prnalt", &prnalt, &size);
     1303  PrfQueryProfileData(fmprof, FM3Str, "Prnformat", &prnformat, &size);
    13141304  PrfQueryProfileData(fmprof, FM3Str, "Prnformfeedbefore",
    1315                       &prnformfeedbefore, &sizeBool);
     1305                      &prnformfeedbefore, &size);
    13161306  PrfQueryProfileData(fmprof, FM3Str,
    1317                       "Prnformfeedafter",&prnformfeedafter, &sizeBool);
    1318   PrfQueryProfileData(fmprof, FM3Str, "Prntabspaces", &prntabspaces, &sizeUlong);
    1319   PrfQueryProfileData(fmprof, FM3Str, "Prnwidth", &prnwidth, &sizeUlong);
    1320   PrfQueryProfileData(fmprof, FM3Str, "Prnlength", &prnlength, &sizeUlong);
    1321   PrfQueryProfileData(fmprof, FM3Str, "Prntmargin", &prntmargin, &sizeUlong);
    1322   PrfQueryProfileData(fmprof, FM3Str, "Prnbmargin", &prnbmargin, &sizeUlong);
    1323   PrfQueryProfileData(fmprof, FM3Str, "Prnlmargin", &prnlmargin, &sizeUlong);
    1324   PrfQueryProfileData(fmprof, FM3Str, "Prnrmargin", &prnrmargin, &sizeUlong);
    1325   PrfQueryProfileData(fmprof, FM3Str, "Prnspacing", &prnspacing, &sizeUlong);
    1326   PrfQueryProfileData(fmprof, FM3Str, "NoDead", &fNoDead, &sizeBool);
    1327   PrfQueryProfileData(fmprof, FM3Str, "NoFinger", &fNoFinger, &sizeBool);
    1328   PrfQueryProfileData(fmprof, appname, "SwitchTree", &fSwitchTree, &sizeBool);
     1307                      "Prnformfeedafter",&prnformfeedafter, &size);
     1308  size = sizeof(ULONG);
     1309  PrfQueryProfileData(fmprof, FM3Str, "Prntabspaces", &prntabspaces, &size);
     1310  PrfQueryProfileData(fmprof, FM3Str, "Prnwidth", &prnwidth, &size);
     1311  PrfQueryProfileData(fmprof, FM3Str, "Prnlength", &prnlength, &size);
     1312  PrfQueryProfileData(fmprof, FM3Str, "Prntmargin", &prntmargin, &size);
     1313  PrfQueryProfileData(fmprof, FM3Str, "Prnbmargin", &prnbmargin, &size);
     1314  PrfQueryProfileData(fmprof, FM3Str, "Prnlmargin", &prnlmargin, &size);
     1315  PrfQueryProfileData(fmprof, FM3Str, "Prnrmargin", &prnrmargin, &size);
     1316  PrfQueryProfileData(fmprof, FM3Str, "Prnspacing", &prnspacing, &size);
     1317  size = sizeof(BOOL);
     1318  PrfQueryProfileData(fmprof, FM3Str, "NoDead", &fNoDead, &size);
     1319  PrfQueryProfileData(fmprof, FM3Str, "NoFinger", &fNoFinger, &size);
     1320  PrfQueryProfileData(fmprof, appname, "SwitchTree", &fSwitchTree, &size);
    13291321  PrfQueryProfileData(fmprof, appname, "SwitchTreeExpand",
    1330                       &fSwitchTreeExpand, &sizeBool);
     1322                      &fSwitchTreeExpand, &size);
    13311323  PrfQueryProfileData(fmprof, appname, "SwitchTreeOnFocus",
    1332                       &fSwitchTreeOnFocus, &sizeBool);
     1324                      &fSwitchTreeOnFocus, &size);
    13331325  PrfQueryProfileData(fmprof, appname, "CollapseFirst",
    1334                       &fCollapseFirst, &sizeBool);
     1326                      &fCollapseFirst, &size);
    13351327  PrfQueryProfileData(fmprof, appname, "FilesInTree",
    1336                       &fFilesInTree, &sizeBool);
    1337   PrfQueryProfileData(fmprof, FM3Str, "TopDir", &fTopDir, &sizeBool);
    1338   PrfQueryProfileData(fmprof, FM3Str, "LookInDir", &fLookInDir, &sizeBool);
     1328                      &fFilesInTree, &size);
     1329  PrfQueryProfileData(fmprof, FM3Str, "TopDir", &fTopDir, &size);
     1330  PrfQueryProfileData(fmprof, FM3Str, "LookInDir", &fLookInDir, &size);
    13391331  PrfQueryProfileString(fmprof, appname, "DefArc", NULL, szDefArc,
    13401332                        sizeof(szDefArc));
     1333  size = sizeof(ULONG);
    13411334  PrfQueryProfileData(fmprof, FM3Str, "AutoviewHeight",
    1342                       &AutoviewHeight, &sizeUlong);
    1343   PrfQueryProfileData(fmprof, FM3Str, "KeepCmdLine", &fKeepCmdLine, &sizeBool);
     1335                      &AutoviewHeight, &size);
     1336  size = sizeof(BOOL);
     1337  PrfQueryProfileData(fmprof, FM3Str, "KeepCmdLine", &fKeepCmdLine, &size);
    13441338  if (strcmp(realappname, "FM/4")) {
    1345     PrfQueryProfileData(fmprof, FM3Str, "MoreButtons", &fMoreButtons, &sizeBool);
    1346     PrfQueryProfileData(fmprof, FM3Str, "Drivebar", &fDrivebar, &sizeBool);
     1339    PrfQueryProfileData(fmprof, FM3Str, "MoreButtons", &fMoreButtons, &size);
     1340    PrfQueryProfileData(fmprof, FM3Str, "Drivebar", &fDrivebar, &size);
    13471341  }
    13481342  else
    13491343    fDrivebar = fMoreButtons = TRUE;
    1350   PrfQueryProfileData(fmprof, appname, "NoSearch", &fNoSearch, &sizeBool);
    1351   PrfQueryProfileData(fmprof, appname, "GuessType", &fGuessType, &sizeBool);
    1352   PrfQueryProfileData(fmprof, appname, "ViewChild", &fViewChild, &sizeBool);
    1353   PrfQueryProfileData(fmprof, appname, "ShowEnv", &fShowEnv, &sizeBool);
     1344  PrfQueryProfileData(fmprof, appname, "NoSearch", &fNoSearch, &size);
     1345  PrfQueryProfileData(fmprof, appname, "GuessType", &fGuessType, &size);
     1346  PrfQueryProfileData(fmprof, appname, "ViewChild", &fViewChild, &size);
     1347  PrfQueryProfileData(fmprof, appname, "ShowEnv", &fShowEnv, &size);
    13541348  size = MaxComLineStrg;
    13551349  PrfQueryProfileData(fmprof, appname, "TreeEnvVarList", pszTreeEnvVarList, &size);
    1356   PrfQueryProfileData(fmprof, appname, "LeaveTree", &fLeaveTree, &sizeBool);
    1357   PrfQueryProfileData(fmprof, FM3Str, "Comments", &fComments, &sizeBool);
    1358   PrfQueryProfileData(fmprof, appname, "WS_ANIMATE", &fwsAnimate, &sizeUlong);
     1350  size = sizeof(BOOL);
     1351  PrfQueryProfileData(fmprof, appname, "LeaveTree", &fLeaveTree, &size);
     1352  PrfQueryProfileData(fmprof, FM3Str, "Comments", &fComments, &size);
     1353  size = sizeof(ULONG);
     1354  PrfQueryProfileData(fmprof, appname, "WS_ANIMATE", &fwsAnimate, &size);
    13591355  if (fwsAnimate)
    13601356    fwsAnimate = WS_ANIMATE;
     1357  size = sizeof(BOOL);
    13611358  PrfQueryProfileData(fmprof, appname, "SelectedAlways",
    1362                       &fSelectedAlways, &sizeBool);
    1363   PrfQueryProfileData(fmprof, FM3Str, "ToolbarHelp", &fToolbarHelp, &sizeBool);
    1364   PrfQueryProfileData(fmprof, FM3Str, "OtherHelp", &fOtherHelp, &sizeBool);
    1365   PrfQueryProfileData(fmprof, FM3Str, "DrivebarHelp", &fDrivebarHelp, &sizeBool);
    1366   PrfQueryProfileData(fmprof, appname, "AutoAddDirs", &fAutoAddDirs, &sizeBool);
     1359                      &fSelectedAlways, &size);
     1360  PrfQueryProfileData(fmprof, FM3Str, "ToolbarHelp", &fToolbarHelp, &size);
     1361  PrfQueryProfileData(fmprof, FM3Str, "OtherHelp", &fOtherHelp, &size);
     1362  PrfQueryProfileData(fmprof, FM3Str, "DrivebarHelp", &fDrivebarHelp, &size);
     1363  PrfQueryProfileData(fmprof, appname, "AutoAddDirs", &fAutoAddDirs, &size);
    13671364  PrfQueryProfileData(fmprof, appname,
    1368                       "AutoAddAllDirs", &fAutoAddAllDirs, &sizeBool);
     1365                      "AutoAddAllDirs", &fAutoAddAllDirs, &size);
    13691366  PrfQueryProfileData(fmprof, FM3Str, "UserListSwitches",
    1370                       &fUserListSwitches, &sizeBool);
     1367                      &fUserListSwitches, &size);
    13711368  PrfQueryProfileData(fmprof, appname, "UseNewViewer",
    1372                       &fUseNewViewer, &sizeBool);
     1369                      &fUseNewViewer, &size);
    13731370  PrfQueryProfileData(fmprof, appname, "DefaultDeletePerm",
    1374                       &fDefaultDeletePerm, &sizeBool);
     1371                      &fDefaultDeletePerm, &size);
    13751372  PrfQueryProfileData(fmprof, FM3Str, "ExternalINIs",
    1376                       &fExternalINIs, &sizeBool);
     1373                      &fExternalINIs, &size);
    13771374  PrfQueryProfileData(fmprof, FM3Str, "ExternalCollector",
    1378                       &fExternalCollector, &sizeBool);
     1375                      &fExternalCollector, &size);
    13791376  PrfQueryProfileData(fmprof, FM3Str, "ExternalArcboxes",
    1380                       &fExternalArcboxes, &sizeBool);
     1377                      &fExternalArcboxes, &size);
    13811378  PrfQueryProfileData(fmprof, FM3Str, "ExternalViewer",
    1382                       &fExternalViewer, &sizeBool);
     1379                      &fExternalViewer, &size);
    13831380  PrfQueryProfileData(fmprof, FM3Str, "UseQProcStat",
    1384                       &fUseQProcStat, &sizeBool);
     1381                      &fUseQProcStat, &size);
    13851382  PrfQueryProfileData(fmprof, FM3Str, "UseQSysState",
    1386                       &fUseQSysState, &sizeBool);
    1387   PrfQueryProfileData(fmprof, FM3Str, "DataMin", &fDataMin, &sizeBool);
    1388   PrfQueryProfileData(fmprof, appname, "DataToFore", &fDataToFore, &sizeBool);
     1383                      &fUseQSysState, &size);
     1384  PrfQueryProfileData(fmprof, FM3Str, "DataMin", &fDataMin, &size);
     1385  PrfQueryProfileData(fmprof, appname, "DataToFore", &fDataToFore, &size);
    13891386  PrfQueryProfileData(fmprof, appname, "DataShowDrives",
    1390                       &fDataShowDrives, &sizeBool);
     1387                      &fDataShowDrives, &size);
    13911388  PrfQueryProfileData(fmprof, appname, "DataInclRemote",
    1392                       &fDataInclRemote, &sizeBool);
    1393   PrfQueryProfileData(fmprof, FM3Str, "SplitStatus", &fSplitStatus, &sizeBool);
     1389                      &fDataInclRemote, &size);
     1390  PrfQueryProfileData(fmprof, FM3Str, "SplitStatus", &fSplitStatus, &size);
    13941391  PrfQueryProfileData(fmprof, appname, "FolderAfterExtract",
    1395                       &fFolderAfterExtract, &sizeBool);
    1396   PrfQueryProfileData(fmprof, FM3Str, "DullDatabar", &fDullMin, &sizeBool);
    1397   PrfQueryProfileData(fmprof, appname, "BlueLED", &fBlueLED, &sizeBool);
     1392                      &fFolderAfterExtract, &size);
     1393  PrfQueryProfileData(fmprof, FM3Str, "DullDatabar", &fDullMin, &size);
     1394  PrfQueryProfileData(fmprof, appname, "BlueLED", &fBlueLED, &size);
    13981395  PrfQueryProfileData(fmprof, appname, "ConfirmDelete",
    1399                       &fConfirmDelete, &sizeBool);
    1400   PrfQueryProfileData(fmprof, FM3Str, "SaveState", &fSaveState, &sizeBool);
     1396                      &fConfirmDelete, &size);
     1397  PrfQueryProfileData(fmprof, FM3Str, "SaveState", &fSaveState, &size);
    14011398  if (fSaveState) {
    14021399    ULONG numsaves = 0;
     
    14081405    fInitialDriveScan = TRUE;
    14091406    sprintf(szKey, "%s.NumDirsLastTime", GetPString(IDS_SHUTDOWNSTATE));
     1407    size = sizeof(ULONG);
    14101408    if (PrfQueryProfileData(fmprof,
    1411                             FM3Str, szKey, (PVOID) &numsaves, &sizeUlong)) {
     1409                            FM3Str, szKey, (PVOID) &numsaves, &size)) {
    14121410      for (x = numsaves - 1; x >= 0; x--) {
    14131411        sprintf(szKey, "%s.DirCnrDir.%lu", GetPString(IDS_SHUTDOWNSTATE), x);
     
    14201418    }
    14211419  }
    1422   PrfQueryProfileData(fmprof, appname, "SyncUpdates", &fSyncUpdates, &sizeBool);
    1423   PrfQueryProfileData(fmprof, appname, "LoadSubject", &fLoadSubject, &sizeBool);
    1424   PrfQueryProfileData(fmprof, appname, "UnHilite", &fUnHilite, &sizeBool);
    1425   PrfQueryProfileData(fmprof, FM3Str, "TileBackwards", &fTileBackwards, &sizeBool);
    1426   PrfQueryProfileData(fmprof, appname, "LoadLongname", &fLoadLongnames, &sizeBool);
    1427   PrfQueryProfileData(fmprof, appname, "VerifyWrites", &fVerify, &sizeBool);
     1420  size = sizeof(BOOL);
     1421  PrfQueryProfileData(fmprof, appname, "SyncUpdates", &fSyncUpdates, &size);
     1422  PrfQueryProfileData(fmprof, appname, "LoadSubject", &fLoadSubject, &size);
     1423  PrfQueryProfileData(fmprof, appname, "UnHilite", &fUnHilite, &size);
     1424  PrfQueryProfileData(fmprof, FM3Str, "TileBackwards", &fTileBackwards, &size);
     1425  PrfQueryProfileData(fmprof, appname, "LoadLongname", &fLoadLongnames, &size);
     1426  PrfQueryProfileData(fmprof, appname, "VerifyWrites", &fVerify, &size);
    14281427  DosSetVerify(fVerify);
    1429   PrfQueryProfileData(fmprof, appname, "DontMoveMouse", &fDontMoveMouse, &sizeBool);
    1430   PrfQueryProfileData(fmprof, appname, "NoIconsFiles", &fNoIconsFiles, &sizeBool);
    1431   PrfQueryProfileData(fmprof, appname, "NoIconsDirs", &fNoIconsDirs, &sizeBool);
    1432   PrfQueryProfileData(fmprof, appname, "ForceUpper", &fForceUpper, &sizeBool);
    1433   PrfQueryProfileData(fmprof, appname, "ForceLower", &fForceLower, &sizeBool);
    1434   PrfQueryProfileData(fmprof, FM3Str, "TextTools", &fTextTools, &sizeBool);
    1435   PrfQueryProfileData(fmprof, FM3Str, "ToolTitles", &fToolTitles, &sizeBool);
    1436   PrfQueryProfileData(fmprof, appname, "DoubleClickOpens", &fDCOpens, &sizeBool);
    1437   PrfQueryProfileData(fmprof, appname, "LinkSetsIcon", &fLinkSetsIcon, &sizeBool);
    1438   PrfQueryProfileData(fmprof, appname, "Sort", &sortFlags, &sizeInt);
    1439   PrfQueryProfileData(fmprof, appname, "TreeSort", &TreesortFlags, &sizeInt);
     1428  PrfQueryProfileData(fmprof, appname, "DontMoveMouse", &fDontMoveMouse, &size);
     1429  PrfQueryProfileData(fmprof, appname, "NoIconsFiles", &fNoIconsFiles, &size);
     1430  PrfQueryProfileData(fmprof, appname, "NoIconsDirs", &fNoIconsDirs, &size);
     1431  PrfQueryProfileData(fmprof, appname, "ForceUpper", &fForceUpper, &size);
     1432  PrfQueryProfileData(fmprof, appname, "ForceLower", &fForceLower, &size);
     1433  PrfQueryProfileData(fmprof, FM3Str, "TextTools", &fTextTools, &size);
     1434  PrfQueryProfileData(fmprof, FM3Str, "ToolTitles", &fToolTitles, &size);
     1435  PrfQueryProfileData(fmprof, appname, "DoubleClickOpens", &fDCOpens, &size);
     1436  PrfQueryProfileData(fmprof, appname, "LinkSetsIcon", &fLinkSetsIcon, &size);
     1437  size = sizeof(INT);
     1438  PrfQueryProfileData(fmprof, appname, "Sort", &sortFlags, &size);
     1439  PrfQueryProfileData(fmprof, appname, "TreeSort", &TreesortFlags, &size);
    14401440  PrfQueryProfileData(fmprof, appname,
    1441                       "CollectorSort", &CollectorsortFlags, &sizeInt);
     1441                      "CollectorSort", &CollectorsortFlags, &size);
    14421442  size = sizeof(targetdir);
    14431443  PrfQueryProfileData(fmprof, appname, "Targetdir", targetdir, &size);
     
    14461446  size = sizeof(extractpath);
    14471447  PrfQueryProfileData(fmprof, appname, "ExtractPath", extractpath, &size);
    1448   PrfQueryProfileData(fmprof, FM3Str, "FileNamePathCnr", &fFileNameCnrPath, &sizeBool);
     1448  size = sizeof(BOOL);
     1449  PrfQueryProfileData(fmprof, FM3Str, "FileNamePathCnr", &fFileNameCnrPath, &size);
    14491450  size = sizeof(printer);
    14501451  PrfQueryProfileData(fmprof, appname, "Printer", printer, &size);
     
    14641465  size = MaxComLineStrg;
    14651466  PrfQueryProfileData(fmprof, appname, "Virus", virus, &size);
    1466   PrfQueryProfileData(fmprof, appname, "FtpRunWPSDefault", &fFtpRunWPSDefault, &sizeBool);
     1467  size = sizeof(BOOL);
     1468  PrfQueryProfileData(fmprof, appname, "FtpRunWPSDefault", &fFtpRunWPSDefault, &size);
    14671469  size = MaxComLineStrg;
    14681470  PrfQueryProfileData(fmprof, appname, "FTPRun", ftprun, &size);
    14691471  if (!*ftprun)
    14701472    fFtpRunWPSDefault = TRUE;
    1471   PrfQueryProfileData(fmprof, appname, "HttpRunWPSDefault", &fHttpRunWPSDefault, &sizeBool);
     1473  size = sizeof(BOOL);
     1474  PrfQueryProfileData(fmprof, appname, "HttpRunWPSDefault", &fHttpRunWPSDefault, &size);
    14721475  size = MaxComLineStrg;
    14731476  PrfQueryProfileData(fmprof, appname, "HTTPRun", httprun, &size);
     
    14851488  PrfQueryProfileData(fmprof, appname, "LastToolbar", lasttoolbar,
    14861489                      &size);
     1490  size = sizeof(BOOL);
    14871491  PrfQueryProfileData(fmprof, appname, "LibPathStrictHttpRun", &fLibPathStrictHttpRun,
    1488                       &sizeBool);
     1492                      &size);
    14891493  PrfQueryProfileData(fmprof, appname, "LibPathStrictFtpRun", &fLibPathStrictFtpRun,
    1490                       &sizeBool);
     1494                      &size);
    14911495  PrfQueryProfileData(fmprof, appname, "LibPathStrictMailRun", &fLibPathStrictMailRun,
    1492                       &sizeBool);
     1496                      &size);
    14931497  PrfQueryProfileData(fmprof, appname, "NoMailtoMailRun", &fNoMailtoMailRun,
    1494                       &sizeBool);
     1498                      &size);
    14951499  PrfQueryProfileData(fmprof, appname, "FollowTree", &fFollowTree,
    1496                       &sizeBool);
     1500                      &size);
    14971501  PrfQueryProfileData(fmprof, appname, "StartMaximized",
    1498                       &fStartMaximized, &sizeBool);
     1502                      &fStartMaximized, &size);
    14991503  if (!fStartMaximized) {
    15001504    PrfQueryProfileData(fmprof, appname, "StartMinimized",
    1501                         &fStartMinimized, &sizeBool);
    1502   }
    1503   PrfQueryProfileData(fmprof, appname, "DefaultCopy", &fCopyDefault, &sizeBool);
    1504   PrfQueryProfileData(fmprof, appname, "IdleCopy", &fRealIdle, &sizeBool);
     1505                        &fStartMinimized, &size);
     1506  }
     1507  PrfQueryProfileData(fmprof, appname, "DefaultCopy", &fCopyDefault, &size);
     1508  PrfQueryProfileData(fmprof, appname, "IdleCopy", &fRealIdle, &size);
    15051509  PrfQueryProfileData(fmprof, appname, "ArcStuffVisible",
    1506                       &fArcStuffVisible, &sizeBool);
    1507   PrfQueryProfileData(fmprof, FM3Str, "NoTreeGap", &fNoTreeGap, &sizeBool);
     1510                      &fArcStuffVisible, &size);
     1511  PrfQueryProfileData(fmprof, FM3Str, "NoTreeGap", &fNoTreeGap, &size);
    15081512  PrfQueryProfileData(fmprof, FM3Str, "VTreeOpensWPS",
    1509                       &fVTreeOpensWPS, &sizeBool);
    1510   PrfQueryProfileData(fmprof, appname, "RemoteBug", &fRemoteBug, &sizeBool);
     1513                      &fVTreeOpensWPS, &size);
     1514  PrfQueryProfileData(fmprof, appname, "RemoteBug", &fRemoteBug, &size);
    15111515  PrfQueryProfileData(fmprof, appname, "Drag&DropDlg",
    1512                       &fDragndropDlg, &sizeBool);
    1513   PrfQueryProfileData(fmprof, FM3Str, "UserComboBox", &fUserComboBox, &sizeBool);
    1514   PrfQueryProfileData(fmprof, FM3Str, "MinDirOnOpen", &fMinOnOpen, &sizeBool);
     1516                      &fDragndropDlg, &size);
     1517  PrfQueryProfileData(fmprof, FM3Str, "UserComboBox", &fUserComboBox, &size);
     1518  PrfQueryProfileData(fmprof, FM3Str, "MinDirOnOpen", &fMinOnOpen, &size);
    15151519  PrfQueryProfileData(fmprof, appname, "QuickArcFind",
    1516                       &fQuickArcFind, &sizeBool);
     1520                      &fQuickArcFind, &size);
    15171521  PrfQueryProfileData(fmprof, FM3Str, "NoRemovableScan",
    1518                       &fNoRemovableScan, &sizeBool);
     1522                      &fNoRemovableScan, &size);
     1523  size = sizeof(ULONG);
    15191524  PrfQueryProfileData(fmprof, FM3Str, "NoBrokenNotify",
    1520                       &NoBrokenNotify, &sizeUlong);
     1525                      &NoBrokenNotify, &size);
    15211526  PrfQueryProfileData(fmprof, appname, "ContainerType", &ulCnrType,
    1522                       &sizeUlong);
    1523   PrfQueryProfileData(fmprof, appname, "FilesToGet", &FilesToGet, &sizeUlong);
     1527                      &size);
     1528  PrfQueryProfileData(fmprof, appname, "FilesToGet", &FilesToGet, &size);
    15241529  if (FilesToGet < FILESTOGET_MIN)
    15251530    FilesToGet = FILESTOGET_MIN;
    15261531  else if (FilesToGet > FILESTOGET_MAX)
    15271532    FilesToGet = FILESTOGET_MAX;
    1528   PrfQueryProfileData(fmprof, FM3Str, "AutoView", &fAutoView, &sizeBool);
    1529   PrfQueryProfileData(fmprof, FM3Str, "FM2Deletes", &fFM2Deletes, &sizeBool);
    1530   PrfQueryProfileData(fmprof, FM3Str, "TrashCan", &fTrashCan, &sizeBool);
     1533  size = sizeof(BOOL);
     1534  PrfQueryProfileData(fmprof, FM3Str, "AutoView", &fAutoView, &size);
     1535  PrfQueryProfileData(fmprof, FM3Str, "FM2Deletes", &fFM2Deletes, &size);
     1536  PrfQueryProfileData(fmprof, FM3Str, "TrashCan", &fTrashCan, &size);
    15311537
    15321538  LoadDetailsSwitches("DirCnr", &dsDirCnrDefault);
  • trunk/dll/init.h

    r1326 r1328  
    3333extern CHAR *NullStr;
    3434extern ULONG OS2ver[2];
    35 extern ULONG sizeBool;
    36 extern ULONG sizeUlong;
    37 extern ULONG sizeInt;
    38 extern ULONG sizePvoid;
    3935extern PFNWP PFNWPCnr;
    4036extern PFNWP PFNWPMLE;
  • trunk/dll/mainwnd.c

    r1326 r1328  
    29722972              sprintf(szKey, "%sDirCnrSort.%lu", szPrefix, numsaves);
    29732973              PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->sortFlags,
    2974                                   sizeInt);
     2974                                  sizeof(INT));
    29752975              sprintf(szKey, "%sDirCnrFilter.%lu", szPrefix, numsaves);
    29762976              PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->mask,
     
    30493049      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(SWP));
    30503050      sprintf(szKey, "%sDirCnrSort.%lu", szPrefix, ulTemp);
    3051       PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeInt);
     3051      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(INT));
    30523052      sprintf(szKey, "%sDirCnrFilter.%lu", szPrefix, ulTemp);
    30533053      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(MASK));
    30543054      sprintf(szKey, "%sDirCnrView.%lu", szPrefix, ulTemp);
    3055       PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeUlong);
     3055      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(ULONG));
    30563056      sprintf(szKey, "%sDirCnr.%lu.DetailsLongname", szPrefix, ulTemp);
    3057       PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeBool);
     3057      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL));
    30583058      sprintf(szKey, "%sDirCnr.%lu.DetailsSubject", szPrefix, ulTemp);
    3059       PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeBool);
     3059      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL));
    30603060      sprintf(szKey, "%sDirCnr.%lu.DetailsSize", szPrefix, ulTemp);
    3061       PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeBool);
     3061      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL));
    30623062      sprintf(szKey, "%sDirCnr.%lu.DetailsEA", szPrefix, ulTemp);
    3063       PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeBool);
     3063      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL));
    30643064      sprintf(szKey, "%sDirCnr.%lu.DetailsAttr", szPrefix, ulTemp);
    3065       PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeBool);
     3065      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL));
    30663066      sprintf(szKey, "%sDirCnr.%lu.DetailsIcon", szPrefix, ulTemp);
    3067       PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeBool);
     3067      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL));
    30683068      sprintf(szKey, "%sDirCnr.%lu.DetailsLWDate", szPrefix, ulTemp);
    3069       PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeBool);
     3069      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL));
    30703070      sprintf(szKey, "%sDirCnr.%lu.DetailsLWTime", szPrefix, ulTemp);
    3071       PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeBool);
     3071      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL));
    30723072      sprintf(szKey, "%sDirCnr.%lu.DetailsLADate", szPrefix, ulTemp);
    3073       PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeBool);
     3073      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL));
    30743074      sprintf(szKey, "%sDirCnr.%lu.DetailsLATime", szPrefix, ulTemp);
    3075       PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeBool);
     3075      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL));
    30763076      sprintf(szKey, "%sDirCnr.%lu.DetailsCRDate", szPrefix, ulTemp);
    3077       PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeBool);
     3077      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL));
    30783078      sprintf(szKey, "%sDirCnr.%lu.DetailsCRTime", szPrefix, ulTemp);
    3079       PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeBool);
     3079      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, sizeof(BOOL));
    30803080      sprintf(szKey, "%sDirCnrDir.%lu", szPrefix, ulTemp);
    30813081      PrfWriteProfileString(fmprof, FM3Str, szKey, NULL);
     
    30853085  sprintf(szKey, "%sNumDirsLastTime", szPrefix);
    30863086  if (numsaves) {
    3087     PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & numsaves, sizeUlong);
     3087    PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & numsaves, sizeof(ULONG));
    30883088    WinQueryWindowPos(WinQueryWindow(hwndClient, QW_PARENT), &swp);
    30893089    sprintf(szKey, "%sMySizeLastTime", szPrefix);
     
    30953095  }
    30963096  else if (fIsShutDownState) {
    3097     PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & numsaves, sizeUlong);
     3097    PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & numsaves, sizeof(ULONG));
    30983098  }
    30993099
     
    32443244  }
    32453245  sprintf(szKey, "%sNumDirsLastTime", szPrefix);
     3246  size = sizeof(ULONG);
    32463247  if (PrfQueryProfileData(fmprof,
    3247                           FM3Str, szKey, (PVOID) &numsaves, &sizeUlong)) {
     3248                          FM3Str, szKey, (PVOID) &numsaves, &size)) {
    32483249    if (fDeleteState)
    32493250      PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L);
     
    32683269          localdcd.ds.detailslongname = dsDirCnrDefault.detailslongname;  // Set default
    32693270          sprintf(szKey, "%sDirCnr.%lu.DetailsLongname", szPrefix, x);
     3271          size = sizeof(BOOL);
    32703272          if (PrfQueryProfileData(fmprof,
    32713273                                  FM3Str,
    32723274                                  szKey,
    32733275                                  (PVOID) &localdcd.ds.detailslongname,
    3274                                   &sizeBool))
     3276                                  &size))
    32753277          {
    32763278            if (fDeleteState)
     
    32833285                                  szKey,
    32843286                                  (PVOID) &localdcd.ds.detailssubject,
    3285                                   &sizeBool))
     3287                                  &size))
    32863288          {
    32873289            if (fDeleteState)
     
    32943296                                  szKey,
    32953297                                  (PVOID) &localdcd.ds.detailsea,
    3296                                   &sizeBool))
     3298                                  &size))
    32973299          {
    32983300            if (fDeleteState)
     
    33053307                                  szKey,
    33063308                                  (PVOID) &localdcd.ds.detailssize,
    3307                                   &sizeBool))
     3309                                  &size))
    33083310          {
    33093311            if (fDeleteState)
     
    33163318                                  szKey,
    33173319                                  (PVOID) &localdcd.ds.detailsicon,
    3318                                   &sizeBool))
     3320                                  &size))
    33193321          {
    33203322            if (fDeleteState)
     
    33273329                                  szKey,
    33283330                                  (PVOID) &localdcd.ds.detailsattr,
    3329                                   &sizeBool))
     3331                                  &size))
    33303332          {
    33313333            if (fDeleteState)
     
    33383340                                  szKey,
    33393341                                  (PVOID) &localdcd.ds.detailscrdate,
    3340                                   &sizeBool))
     3342                                  &size))
    33413343          {
    33423344            if (fDeleteState)
     
    33493351                                  szKey,
    33503352                                  (PVOID) &localdcd.ds.detailscrtime,
    3351                                   &sizeBool))
     3353                                  &size))
    33523354          {
    33533355            if (fDeleteState)
     
    33603362                                  szKey,
    33613363                                  (PVOID) &localdcd.ds.detailslwdate,
    3362                                   &sizeBool))
     3364                                  &size))
    33633365          {
    33643366            if (fDeleteState)
     
    33713373                                  szKey,
    33723374                                  (PVOID) &localdcd.ds.detailslwtime,
    3373                                   &sizeBool))
     3375                                  &size))
    33743376          {
    33753377            if (fDeleteState)
     
    33823384                                  szKey,
    33833385                                  (PVOID) &localdcd.ds.detailsladate,
    3384                                   &sizeBool))
     3386                                  &size))
    33853387          {
    33863388            if (fDeleteState)
     
    33933395                                  szKey,
    33943396                                  (PVOID) &localdcd.ds.detailslatime,
    3395                                   &sizeBool))
     3397                                  &size))
    33963398          {
    33973399            if (fDeleteState)
     
    34373439                dcd->ds.detailslwtime   = localdcd.ds.detailslwtime  ;
    34383440                sprintf(szKey, "%sDirCnrSort.%lu", szPrefix, x);
     3441                size = sizeof(INT);
    34393442                if (PrfQueryProfileData(fmprof,
    34403443                                        FM3Str,
    34413444                                        szKey,
    34423445                                        (PVOID) &dcd->sortFlags,
    3443                                         &sizeInt)) {
     3446                                        &size)) {
    34443447                  if (!dcd->sortFlags)
    34453448                    dcd->sortFlags = SORT_PATHNAME;
     
    34623465                sprintf(szKey, "%sDirCnrView.%lu", szPrefix, x);
    34633466                if (!noview) {
     3467                  size = sizeof(ULONG);
    34643468                  if (PrfQueryProfileData(fmprof,
    34653469                                          FM3Str,
    34663470                                          szKey,
    34673471                                          (PVOID) &dcd->flWindowAttr,
    3468                                           &sizeUlong)) {
     3472                                          &size)) {
    34693473
    34703474                    CNRINFO cnri;
Note: See TracChangeset for help on using the changeset viewer.