Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from Paul's uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/drv32/strategy.c

    r591 r679  
    2424 */
    2525
    26 #define INCL_NOPMAPI
    27 #define INCL_DOSINFOSEG    // Need Global info seg in rm.cpp algorithms
    2826#include <os2.h>
    29 
    3027#include <devhelp.h>
    31 //DAZ #include <devrp.h>
    32 #include <devown.h>
    33 #include "strategy.h"
    3428#include <ossidc32.h>
    3529#include <dbgos2.h>
    3630#include <string.h>
     31#include <u32ioctl.h>
     32#include "devown.h"
     33#include "strategy.h"
    3734
    3835ULONG StratRead(REQPACKET __far *_rp);
    3936ULONG StratIOCtl(REQPACKET __far *_rp);
    40 ULONG StratClose(REQPACKET __far *_rp);
    4137
    4238ULONG DiscardableInit(REQPACKET __far*);
     
    5450  }
    5551  numOS2Opens++;
     52  return RPDONE;
     53}
     54
     55//******************************************************************************
     56ULONG StratClose(REQPACKET __far* rp)
     57{
     58  // only called if device successfully opened
     59  //  printk("strat close\n");
     60  numOS2Opens--;
     61
     62  UniaudCloseAll(rp->open_close.usSysFileNum);
     63
     64  if (numOS2Opens == 0)
     65  {
     66    deviceOwner = DEV_NO_OWNER;
     67  }
    5668  return RPDONE;
    5769}
     
    172184  else return(RPERR_BADCOMMAND | RPDONE);
    173185}
    174 
Note: See TracChangeset for help on using the changeset viewer.