winearts patch to fix last patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Due to a mix up of source trees on my local system, the last patch I
sent to winearts was not actually tested and contains two bugs. This
patch fixes both of them and should be used instead of the patch
Marcus submitted.

Sorry for the trouble!

--- orig/dlls/winmm/winearts/audio.c
+++ mod/dlls/winmm/winearts/audio.c
@@ -719,7 +719,7 @@
     {
       if(wwo->sound_buffer)
       {
-	HeapRealloc(GetProcessHeap(), 0, wwo->sound_buffer, toWrite);
+	wwo->sound_buffer = HeapReAlloc(GetProcessHeap(), 0, wwo->sound_buffer, toWrite);
 	wwo->buffer_size = toWrite;
       }
     }

Or, if you have Marcus' patch applied already this should work:

--- orig/dlls/winmm/winearts/audio.c
+++ mod/dlls/winmm/winearts/audio.c
@@ -719,7 +719,7 @@
     {
       if(wwo->sound_buffer)
       {
-	HeapReAlloc(GetProcessHeap(), 0, wwo->sound_buffer, toWrite);
+	wwo->sound_buffer = HeapReAlloc(GetProcessHeap(), 0, wwo->sound_buffer, toWrite);
 	wwo->buffer_size = toWrite;
       }
     }


Jeremy Shaw.


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux