Bad flag check

Francois Gouget fgouget at free.fr
Thu Jul 14 05:13:50 CDT 2011


One of my scripts noticed that the following code does not make sense 
in dlls/winmm/waveform.c:

static DWORD WINMM_NotifyClient(WINMM_CBInfo *info, WORD msg,
       DWORD_PTR param1, DWORD_PTR param2)
{
   if(info->flags & DCB_NULL)
        return MMSYSERR_NOERROR;

That's because DCB_NULL is 0 so this condition is always false. What was 
the intent?


-- 
Francois Gouget <fgouget at free.fr>              http://fgouget.free.fr/
               RFC 2549: ftp://ftp.isi.edu/in-notes/rfc2549.txt
                IP over Avian Carriers with Quality of Service



More information about the wine-devel mailing list