Rémi Bernon : hidclass.sys: Use realloc instead of HeapReAlloc.

Alexandre Julliard julliard at winehq.org
Tue Jun 8 16:34:26 CDT 2021


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

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Tue Jun  8 18:12:34 2021 +0200

hidclass.sys: Use realloc instead of HeapReAlloc.

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

---

 dlls/hidclass.sys/buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/hidclass.sys/buffer.c b/dlls/hidclass.sys/buffer.c
index a45833ae383..720ca4eeb20 100644
--- a/dlls/hidclass.sys/buffer.c
+++ b/dlls/hidclass.sys/buffer.c
@@ -199,7 +199,7 @@ UINT RingBuffer_AddPointer(struct ReportRingBuffer *ring)
     {
         int count = idx = ring->pointer_alloc;
         ring->pointer_alloc *= 2;
-        ring->pointers = HeapReAlloc(GetProcessHeap(), 0, ring->pointers, sizeof(UINT) * ring->pointer_alloc);
+        ring->pointers = realloc(ring->pointers, sizeof(UINT) * ring->pointer_alloc);
         for( ;count < ring->pointer_alloc; count++)
             ring->pointers[count] = POINTER_UNUSED;
     }




More information about the wine-cvs mailing list