winearts patch to fix last patch
Jeremy Shaw
jeremy.shaw at lindows.com
Fri Jan 9 13:31:10 CST 2004
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.
More information about the wine-patches
mailing list