Andrew Talbot : wineoss.drv: Memory allocation sizes fix.

Alexandre Julliard julliard at winehq.org
Mon May 12 07:12:18 CDT 2008


Module: wine
Branch: master
Commit: ddfbe4ee1fe353d326392509ea4e45108e081a2f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ddfbe4ee1fe353d326392509ea4e45108e081a2f

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Sat May 10 16:25:33 2008 +0100

wineoss.drv: Memory allocation sizes fix.

---

 dlls/wineoss.drv/dscapture.c |    4 ++--
 dlls/wineoss.drv/dsrender.c  |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/wineoss.drv/dscapture.c b/dlls/wineoss.drv/dscapture.c
index a2157ec..e474936 100644
--- a/dlls/wineoss.drv/dscapture.c
+++ b/dlls/wineoss.drv/dscapture.c
@@ -1239,7 +1239,7 @@ static HRESULT WINAPI IDsCaptureDriverPropertySetImpl_Create(
     IDsCaptureDriverPropertySetImpl * dscdps;
     TRACE("(%p,%p)\n",dscdb,pdscdps);
 
-    dscdps = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(dscdps));
+    dscdps = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*dscdps));
     if (dscdps == NULL) {
         WARN("out of memory\n");
         return DSERR_OUTOFMEMORY;
@@ -1262,7 +1262,7 @@ static HRESULT WINAPI IDsCaptureDriverNotifyImpl_Create(
     IDsCaptureDriverNotifyImpl * dscdn;
     TRACE("(%p,%p)\n",dscdb,pdscdn);
 
-    dscdn = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(dscdn));
+    dscdn = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*dscdn));
     if (dscdn == NULL) {
         WARN("out of memory\n");
         return DSERR_OUTOFMEMORY;
diff --git a/dlls/wineoss.drv/dsrender.c b/dlls/wineoss.drv/dsrender.c
index dfc636a..563f86d 100644
--- a/dlls/wineoss.drv/dsrender.c
+++ b/dlls/wineoss.drv/dsrender.c
@@ -893,7 +893,7 @@ static HRESULT WINAPI IDsDriverPropertySetImpl_Create(
     IDsDriverPropertySetImpl * dsdps;
     TRACE("(%p,%p)\n",dsdb,pdsdps);
 
-    dsdps = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(dsdps));
+    dsdps = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*dsdps));
     if (dsdps == NULL) {
         WARN("out of memory\n");
         return DSERR_OUTOFMEMORY;
@@ -916,7 +916,7 @@ static HRESULT WINAPI IDsDriverNotifyImpl_Create(
     IDsDriverNotifyImpl * dsdn;
     TRACE("(%p,%p)\n",dsdb,pdsdn);
 
-    dsdn = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(dsdn));
+    dsdn = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*dsdn));
 
     if (dsdn == NULL) {
         WARN("out of memory\n");




More information about the wine-cvs mailing list