Rémi Bernon : winepulse.drv: Keep buffer size separate from allocated size.

Alexandre Julliard julliard at winehq.org
Fri Dec 17 15:14:55 CST 2021


Module: wine
Branch: master
Commit: 262c52110ccc50cdca001eebc8c2f5481b902506
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=262c52110ccc50cdca001eebc8c2f5481b902506

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Thu Dec 16 18:20:25 2021 +0100

winepulse.drv: Keep buffer size separate from allocated size.

So that it rounds to integral audio frame count.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52225
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winepulse.drv/pulse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winepulse.drv/pulse.c b/dlls/winepulse.drv/pulse.c
index c329e8c423c..fb8133e9e45 100644
--- a/dlls/winepulse.drv/pulse.c
+++ b/dlls/winepulse.drv/pulse.c
@@ -876,7 +876,7 @@ static NTSTATUS pulse_create_stream(void *args)
             stream->alloc_size = stream->real_bufsize_bytes =
                 stream->bufsize_frames * 2 * pa_frame_size(&stream->ss);
             if (NtAllocateVirtualMemory(GetCurrentProcess(), (void **)&stream->local_buffer,
-                                        0, &stream->real_bufsize_bytes, MEM_COMMIT, PAGE_READWRITE))
+                                        0, &stream->alloc_size, MEM_COMMIT, PAGE_READWRITE))
                 hr = E_OUTOFMEMORY;
         } else {
             UINT32 i, capture_packets;




More information about the wine-cvs mailing list