Changeset 843 for trunk/dll/inis.c


Ignore:
Timestamp:
Sep 24, 2007, 12:46:47 AM (18 years ago)
Author:
Steven Levine
Message:

Revert to standard APIs where large file support not required by ticket #41

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/inis.c

    r841 r843  
    2727#define INCL_DOS
    2828#define INCL_DOSERRORS
    29 #define INCL_LONGLONG
    3029#include <os2.h>
    3130
     
    524523      nm = 1;
    525524      DosError(FERR_DISABLEHARDERR);
    526       if (!xDosFindFirst("*.IST",
    527                          &hdir,
    528                          FILE_NORMAL | FILE_ARCHIVED,
    529                          &ffb, sizeof(ffb), &nm, FIL_STANDARDL)) {
     525      if (!DosFindFirst("*.IST",
     526                        &hdir,
     527                        FILE_NORMAL | FILE_ARCHIVED,
     528                        &ffb, sizeof(ffb), &nm, FIL_STANDARD)) {
    530529        do {
    531530          priority_bumped();
     
    534533                            MPFROMP(ffb.achName));
    535534          nm = 1;
    536         } while (!xDosFindNext(hdir, &ffb, sizeof(ffb), &nm));
     535        } while (!DosFindNext(hdir, &ffb, sizeof(ffb), &nm));
    537536        DosFindClose(hdir);
    538537        priority_bumped();
     
    11791178            break;
    11801179          }
    1181           /*  replace temp inis with new permanent inis */
     1180          /* replace temp inis with new permanent inis */
    11821181          memset(&prfp, 0, sizeof(PRFPROFILE));
    11831182          prfp.cchUserName = strlen(oldsysini);
     
    15731572      hDrop = DrgDrag(hwnd, pDInfo, &DIcon, 1L, VK_ENDDRAG, (PVOID) NULL);
    15741573      if (hDrop == NULLHANDLE)
    1575         FreeDragInfoData(hwnd, pDInfo);
     1574        FreeDragInfoData(hwnd, pDInfo);
    15761575      WinDestroyPointer(hptrINI);
    15771576    }
     
    15841583
    15851584      if (!DrgAccessDraginfo(pDInfo)) {
    1586         Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__,
    1587                   "DrgAccessDraginfo");
     1585        Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__,
     1586                  "DrgAccessDraginfo");
    15881587      }
    15891588      else {
    1590         pDItem = DrgQueryDragitemPtr(pDInfo,0);
    1591         /* Check valid rendering mechanisms and data */
    1592         if (DrgVerifyRMF(pDItem, DRM_OS2FILE, NULL)) {
     1589        pDItem = DrgQueryDragitemPtr(pDInfo,0);
     1590        /* Check valid rendering mechanisms and data */
     1591        if (DrgVerifyRMF(pDItem, DRM_OS2FILE, NULL)) {
    15931592          DrgFreeDraginfo(pDInfo);
    15941593          return (MRFROM2SHORT(DOR_DROP, DO_LINK));     /* OK to drop */
    1595         }
    1596         else if (DrgVerifyRMF(pDItem, DRM_FM2INIRECORD, DRF_FM2INI)) {
     1594        }
     1595        else if (DrgVerifyRMF(pDItem, DRM_FM2INIRECORD, DRF_FM2INI)) {
    15971596          if (WinQueryWindow(pDInfo->hwndSource, QW_PARENT) !=
    15981597              WinQueryWindow(hwnd, QW_PARENT))
     
    16011600            return (MRFROM2SHORT(DOR_DROP, ((fCopyDefault) ? DO_COPY : DO_MOVE)));
    16021601          }
    1603         }
    1604         DrgFreeDraginfo(pDInfo);
     1602        }
     1603        DrgFreeDraginfo(pDInfo);
    16051604      }
    16061605    }
     
    16141613    {
    16151614      PDRAGINFO pDInfo = (PDRAGINFO) mp1;
    1616       PDRAGITEM pDItem;         /* Pointer to DRAGITEM   */
     1615      PDRAGITEM pDItem;         /* Pointer to DRAGITEM */
    16171616      ULONG numitems, curitem, len;
    16181617      USHORT action;
     
    16231622
    16241623      if (!DrgAccessDraginfo(pDInfo)) {
    1625         Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__,
    1626                   "DrgAccessDraginfo");
    1627         return 0;
     1624        Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__,
     1625                  "DrgAccessDraginfo");
     1626        return 0;
    16281627      }
    16291628      numitems = DrgQueryDragitemCount(pDInfo);
     
    16381637          else {
    16391638            if (FullDrgName(pDItem, szFrom, sizeof(szFrom)) &&
    1640                 !DosQueryPathInfo(szFrom, FIL_STANDARDL, &fsa,
    1641                                   (ULONG) sizeof(FILESTATUS3L)))
     1639                !DosQueryPathInfo(szFrom, FIL_STANDARD, &fsa, sizeof(fsa)))
    16421640              WinSendMsg(WinQueryWindow(hwnd, QW_PARENT), WM_COMMAND,
    16431641                         MPFROM2SHORT(IDM_COMPARE, 0), MPFROMP(szFrom));
Note: See TracChangeset for help on using the changeset viewer.