Changeset 1438 for trunk/dll/wrappers.c


Ignore:
Timestamp:
Jun 28, 2009, 10:47:00 PM (16 years ago)
Author:
Gregg Young
Message:

Improved drivebar changes; Added AddBackslashToPath() to remove repeatative code. replaced "
" with PCSZ variable; ANY_OBJ added the DosAlloc... (experimental)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/wrappers.c

    r1432 r1438  
    5151#pragma data_seg(GLOBAL1)
    5252BOOL fNoLargeFileSupport;
     53
     54APIRET xDosAllocSharedMem(PPVOID ppb,
     55                          PSZ pszName,
     56                          ULONG cb,
     57                          ULONG flag)
     58{
     59  APIRET rc; ;
     60
     61  rc = DosAllocSharedMem(ppb, pszName, cb, flag | OBJ_ANY);
     62  DbgMsg(pszSrcFile, __LINE__, "ppb %p", *ppb);
     63  if (rc)
     64    rc = DosAllocSharedMem(ppb, pszName, cb, flag);
     65  return rc;
     66}
     67
     68APIRET xDosAllocMem(PPVOID ppb,
     69                    ULONG cb,
     70                    ULONG flag)
     71{
     72  APIRET rc;
     73
     74  rc = DosAllocMem(ppb, cb, flag | OBJ_ANY);
     75  DbgMsg(pszSrcFile, __LINE__, "ppb %p %x", *ppb, rc);
     76  if (rc)
     77    rc = DosAllocMem(ppb, cb, flag);
     78  DbgMsg(pszSrcFile, __LINE__, "ppb %p", *ppb);
     79  return rc;
     80}
    5381
    5482APIRET xDosFindFirst(PSZ pszFileSpec,
Note: See TracChangeset for help on using the changeset viewer.