[DSOUND] primary->dsound was set to null

Peter Berg Larsen pebl at math.ku.dk
Sat Nov 5 04:44:59 CST 2005


Changelog:
 	device->primary->dsound was always set to null if more than
 	one used the device.

Peter


Index: dlls/dsound/dsound.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/dsound.c,v
retrieving revision 1.42
diff -u -r1.42 dsound.c
--- dlls/dsound/dsound.c	19 Oct 2005 19:21:38 -0000	1.42
+++ dlls/dsound/dsound.c	5 Nov 2005 10:24:36 -0000
@@ -251,7 +251,7 @@
          if (This->device) {
              if (DirectSoundDevice_Release(This->device) != 0) {
                  /* device not released so make sure primary reference to This removed */
-                if (This->device->primary)
+                if (This->device->primary && This->device->primary->dsound == This)
                      This->device->primary->dsound = NULL;
              }
          }




More information about the wine-patches mailing list