Registry problem

Alexandre Julliard julliard at winehq.com
Wed Oct 9 11:25:36 CDT 2002


steve.lustbader at philips.com writes:

> When I try to run WinAmp, it exits immediately with that same error.
> It doesn't run at all, unlike the installer, which runs but then ends
> with the error (probably when it tries to run winamp itself).

Does this help?

Index: dlls/winmm/wineoss/audio.c
===================================================================
RCS file: /opt/cvs-commit/wine/dlls/winmm/wineoss/audio.c,v
retrieving revision 1.62
diff -u -r1.62 audio.c
--- dlls/winmm/wineoss/audio.c	7 Oct 2002 18:23:40 -0000	1.62
+++ dlls/winmm/wineoss/audio.c	9 Oct 2002 16:23:52 -0000
@@ -245,7 +245,7 @@
     if ((fd = open(ossdev->dev_name, ossdev->open_access|O_NDELAY, 0)) == -1)
     {
         WARN("Couldn't open out %s (%s)\n", ossdev->dev_name, strerror(errno));
-        return (errno == EBUSY) ? MMSYSERR_ALLOCATED : MMSYSERR_ERROR;
+        return -1;
     }
     fcntl(fd, F_SETFD, 1); /* set close on exec flag */
     /* turn full duplex on if it has been requested */
@@ -373,7 +373,7 @@
     }
     TRACE("Changing fd from %d to ", ossdev->fd);
     close(ossdev->fd);
-    OSS_RawOpenDevice(ossdev, &ossdev->audio_fragment);
+    ossdev->fd = OSS_RawOpenDevice(ossdev, &ossdev->audio_fragment);
     TRACE("%d\n", ossdev->fd);
     return ossdev->fd;
 }

-- 
Alexandre Julliard
julliard at winehq.com



More information about the wine-devel mailing list