Ignore:
Timestamp:
Aug 24, 1999, 11:21:11 PM (26 years ago)
Author:
phaller
Message:

Fix: added SetWin32TIB wrappers to callback functions

File:
1 edited

Legend:

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

    r588 r668  
    1 /* $Id: midi.cpp,v 1.4 1999-08-19 18:46:04 phaller Exp $ */
     1/* $Id: midi.cpp,v 1.5 1999-08-24 21:21:11 phaller Exp $ */
    22
    33/*
     
    2626#include "midi.hpp"
    2727#include <winos2def.h>
    28 
     28#include <wprocess.h>
    2929
    3030ODINDEBUGCHANNEL(WINMM-MIDI)
     
    884884void Midi::callback( UINT msg, DWORD p1, DWORD p2)
    885885{
     886  USHORT selTIB;
     887
     888  dprintf(("WINMM: callback %x %lx %lx\n", msg, p1, p2 ));
     889
    886890   if ( iCallbackFunction )
    887891   {
    888       dprintf(("WINMM: callback %x %lx %lx\n", msg, p1, p2 ));
    889       iCallbackFunction( (ULONG)this, msg, iCallbackInstance, p1, p2 );
     892     selTIB = SetWin32TIB();
     893     iCallbackFunction( (ULONG)this, msg, iCallbackInstance, p1, p2 );
     894     SetFS(selTIB);
    890895   }
    891896   else
     
    969974   // Disable the link
    970975   iHwdInstance->removeLink( iAppInstance );
    971 
    972976   callback( MIM_CLOSE, 0, 0 );
    973977   return MMSYSERR_NOERROR;
Note: See TracChangeset for help on using the changeset viewer.