[MCIAVI32] Sync with Wine Staging 1.9.11. CORE-11368

svn path=/trunk/; revision=71560
This commit is contained in:
Amine Khaldi 2016-06-05 19:29:11 +00:00
parent 8cc3382109
commit 28ad123809
2 changed files with 11 additions and 9 deletions

View file

@ -226,14 +226,16 @@ static BOOL MCIAVI_AddFrame(WINE_MCIAVI* wma, LPMMCKINFO mmck,
alb->numAudioBlocks, mmck->cksize);
if (wma->lpWaveFormat) {
if (alb->numAudioBlocks >= alb->numAudioAllocated) {
alb->numAudioAllocated += 32;
if (!wma->lpAudioIndex)
wma->lpAudioIndex = HeapAlloc(GetProcessHeap(), 0,
alb->numAudioAllocated * sizeof(struct MMIOPos));
else
wma->lpAudioIndex = HeapReAlloc(GetProcessHeap(), 0, wma->lpAudioIndex,
alb->numAudioAllocated * sizeof(struct MMIOPos));
if (!wma->lpAudioIndex) return FALSE;
DWORD newsize = alb->numAudioAllocated + 32;
struct MMIOPos* newindex;
if (!wma->lpAudioIndex)
newindex = HeapAlloc(GetProcessHeap(), 0, newsize * sizeof(struct MMIOPos));
else
newindex = HeapReAlloc(GetProcessHeap(), 0, wma->lpAudioIndex, newsize * sizeof(struct MMIOPos));
if (!newindex) return FALSE;
alb->numAudioAllocated = newsize;
wma->lpAudioIndex = newindex;
}
wma->lpAudioIndex[alb->numAudioBlocks].dwOffset = mmck->dwDataOffset;
wma->lpAudioIndex[alb->numAudioBlocks].dwSize = mmck->cksize;

View file

@ -92,7 +92,7 @@ reactos/dll/win32/localspl # Synced to WineStaging-1.9.4
reactos/dll/win32/localui # Synced to WineStaging-1.9.4
reactos/dll/win32/lz32 # Synced to WineStaging-1.9.4
reactos/dll/win32/mapi32 # Synced to WineStaging-1.9.4
reactos/dll/win32/mciavi32 # Synced to WineStaging-1.9.4
reactos/dll/win32/mciavi32 # Synced to WineStaging-1.9.11
reactos/dll/win32/mcicda # Synced to WineStaging-1.9.4
reactos/dll/win32/mciqtz32 # Synced to WineStaging-1.9.4
reactos/dll/win32/mciseq # Synced to WineStaging-1.9.4