Get rid of HeapAlloc casts.
diff --git a/dlls/winmm/wineoss/dscapture.c b/dlls/winmm/wineoss/dscapture.c index a1c695e..3d672aa 100644 --- a/dlls/winmm/wineoss/dscapture.c +++ b/dlls/winmm/wineoss/dscapture.c
@@ -1239,7 +1239,7 @@ IDsCaptureDriverPropertySetImpl * dscdps; TRACE("(%p,%p)\n",dscdb,pdscdps); - dscdps = (IDsCaptureDriverPropertySetImpl*)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 @@ IDsCaptureDriverNotifyImpl * dscdn; TRACE("(%p,%p)\n",dscdb,pdscdn); - dscdn = (IDsCaptureDriverNotifyImpl*)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; @@ -1291,7 +1291,7 @@ return MMSYSERR_NOTSUPPORTED; } - *idrv = (IDsCaptureDriverImpl*)HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(IDsCaptureDriverImpl)); + *idrv = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(IDsCaptureDriverImpl)); if (!*idrv) return MMSYSERR_NOMEM; (*idrv)->lpVtbl = &dscdvt;
diff --git a/dlls/winmm/wineoss/dsrender.c b/dlls/winmm/wineoss/dsrender.c index 4b41742..4cbae15 100644 --- a/dlls/winmm/wineoss/dsrender.c +++ b/dlls/winmm/wineoss/dsrender.c
@@ -786,7 +786,7 @@ if (dwFlags & (DSBCAPS_CTRLFREQUENCY | DSBCAPS_CTRLPAN)) return DSERR_CONTROLUNAVAIL; - *ippdsdb = (IDsDriverBufferImpl*)HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(IDsDriverBufferImpl)); + *ippdsdb = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(IDsDriverBufferImpl)); if (*ippdsdb == NULL) return DSERR_OUTOFMEMORY; (*ippdsdb)->lpVtbl = &dsdbvt; @@ -894,7 +894,7 @@ IDsDriverPropertySetImpl * dsdps; TRACE("(%p,%p)\n",dsdb,pdsdps); - dsdps = (IDsDriverPropertySetImpl*)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; @@ -917,7 +917,7 @@ IDsDriverNotifyImpl * dsdn; TRACE("(%p,%p)\n",dsdb,pdsdn); - dsdn = (IDsDriverNotifyImpl*)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(dsdn)); + dsdn = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(dsdn)); if (dsdn == NULL) { WARN("out of memory\n"); @@ -947,7 +947,7 @@ return MMSYSERR_NOTSUPPORTED; } - *idrv = (IDsDriverImpl*)HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(IDsDriverImpl)); + *idrv = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(IDsDriverImpl)); if (!*idrv) return MMSYSERR_NOMEM; (*idrv)->lpVtbl = &dsdvt;