Commit ddfbe4ee authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

wineoss.drv: Memory allocation sizes fix.

parent 7b3ab797
...@@ -1239,7 +1239,7 @@ static HRESULT WINAPI IDsCaptureDriverPropertySetImpl_Create( ...@@ -1239,7 +1239,7 @@ static HRESULT WINAPI IDsCaptureDriverPropertySetImpl_Create(
IDsCaptureDriverPropertySetImpl * dscdps; IDsCaptureDriverPropertySetImpl * dscdps;
TRACE("(%p,%p)\n",dscdb,pdscdps); 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) { if (dscdps == NULL) {
WARN("out of memory\n"); WARN("out of memory\n");
return DSERR_OUTOFMEMORY; return DSERR_OUTOFMEMORY;
...@@ -1262,7 +1262,7 @@ static HRESULT WINAPI IDsCaptureDriverNotifyImpl_Create( ...@@ -1262,7 +1262,7 @@ static HRESULT WINAPI IDsCaptureDriverNotifyImpl_Create(
IDsCaptureDriverNotifyImpl * dscdn; IDsCaptureDriverNotifyImpl * dscdn;
TRACE("(%p,%p)\n",dscdb,pdscdn); 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) { if (dscdn == NULL) {
WARN("out of memory\n"); WARN("out of memory\n");
return DSERR_OUTOFMEMORY; return DSERR_OUTOFMEMORY;
......
...@@ -893,7 +893,7 @@ static HRESULT WINAPI IDsDriverPropertySetImpl_Create( ...@@ -893,7 +893,7 @@ static HRESULT WINAPI IDsDriverPropertySetImpl_Create(
IDsDriverPropertySetImpl * dsdps; IDsDriverPropertySetImpl * dsdps;
TRACE("(%p,%p)\n",dsdb,pdsdps); 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) { if (dsdps == NULL) {
WARN("out of memory\n"); WARN("out of memory\n");
return DSERR_OUTOFMEMORY; return DSERR_OUTOFMEMORY;
...@@ -916,7 +916,7 @@ static HRESULT WINAPI IDsDriverNotifyImpl_Create( ...@@ -916,7 +916,7 @@ static HRESULT WINAPI IDsDriverNotifyImpl_Create(
IDsDriverNotifyImpl * dsdn; IDsDriverNotifyImpl * dsdn;
TRACE("(%p,%p)\n",dsdb,pdsdn); 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) { if (dsdn == NULL) {
WARN("out of memory\n"); WARN("out of memory\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment