Ignore:
Timestamp:
Nov 1, 1999, 8:02:45 PM (26 years ago)
Author:
sandervl
Message:

waveOutGetDevCaps fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/winmm/waveout.cpp

    r1404 r1538  
    1 /* $Id: waveout.cpp,v 1.5 1999-10-22 18:09:16 sandervl Exp $ */
     1/* $Id: waveout.cpp,v 1.6 1999-11-01 19:02:45 sandervl Exp $ */
    22
    33/*
     
    234234              UINT, cbwoc)
    235235{
    236   dprintf(("WINMM:waveOutGetDevCapsA - not implemented\n"));
     236  dprintf(("WINMM:waveOutGetDevCapsA"));
     237
     238  if(DartWaveOut::getNumDevices() == 0) {
     239        memset(pwoc, 0, sizeof(*pwoc));
     240        return MMSYSERR_NODRIVER;
     241  }
     242
    237243  // we have to fill in this thing
    238244  pwoc->wMid = 0;                  /* manufacturer ID */
     
    260266              UINT, cbwoc)
    261267{
    262   dprintf(("WINMM:waveOutGetDevCapsW - not implemented\n"));
     268  dprintf(("WINMM:waveOutGetDevCapsW"));
     269
     270  if(DartWaveOut::getNumDevices() == 0) {
     271        memset(pwoc, 0, sizeof(*pwoc));
     272        return MMSYSERR_NODRIVER;
     273  }
    263274  // we have to fill in this thing
    264275  pwoc->wMid = 0;                  /* manufacturer ID */
Note: See TracChangeset for help on using the changeset viewer.