Changeset 3100 for trunk/src


Ignore:
Timestamp:
Mar 13, 2000, 1:49:00 PM (25 years ago)
Author:
sandervl
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/dsound/OS2PrimBuff.cpp

    r3099 r3100  
    454454   OS2PrimBuff *me = (OS2PrimBuff *)This;
    455455
    456    if (me == NULL) {
    457       return DSERR_INVALIDPARAM;
     456   if (me == NULL || lpfxFormat == NULL) {
     457      return DSERR_INVALIDPARAM;
     458   }
     459
     460   /* Note: the software mixer doesn't really support mono output but */
     461   /*       we can safely mix in stereo anyway                        */
     462   if (lpfxFormat->nChannels == 1) {
     463      if (me->parentDS->GetCoopLevel() != DSSCL_WRITEPRIMARY)
     464         lpfxFormat->nChannels = 2;
    458465   }
    459466
Note: See TracChangeset for help on using the changeset viewer.