[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Hack in mmsystem... need more info
From:       Francois Jacques <francoisj () macadamian ! com>
Date:       2000-09-28 15:25:41
[Download RAW message or body]

Folks,

While adding asynchronous recording, I needed the following hack to make
things work with the application I'm working on. If someone could give
me a quick explanation, that would be great.

Thanks in advance,
Francois



-- 
Francois Jacques, Software Designer
Macadamian Technologies Inc.


["mmsystem_hack.diff" (text/plain)]

index: dlls/winmm/mmsystem.c
===================================================================
rcs file: /home/wine/wine/dlls/winmm/mmsystem.c,v
retrieving revision 1.16
diff -u -r1.16 mmsystem.c
--- dlls/winmm/mmsystem.c	2000/08/14 14:29:22	1.16
+++ dlls/winmm/mmsystem.c	2000/09/21 19:48:24
@@ -4461,8 +4461,10 @@
 {								\
     lpwine_mld		wmld;					\
     trace("(%04x);\n", hwavein);           			\
-    if ((wmld=mmdrv_get(hwavein,mmdrv_wavein,false)) == null) 	\
+    if ((wmld=mmdrv_get(hwavein,mmdrv_wavein,true)) == null)   \
+	{							\
 	return mmsyserr_invalhandle;				\
+	}							\
     return mmdrv_message(wmld,widm_##xx,0l,0l,true);		\
 }								\
 uint16 winapi wavein##xx##16(hwavein16 hwavein16)		\



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic