Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1bcbd546
Commit
1bcbd546
authored
Nov 21, 2003
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HeapReAlloc doesn't allocate memory.
parent
3842103c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
mmoutput.c
dlls/winmm/mciavi/mmoutput.c
+9
-9
No files found.
dlls/winmm/mciavi/mmoutput.c
View file @
1bcbd546
...
...
@@ -194,9 +194,12 @@ static BOOL MCIAVI_AddFrame(WINE_MCIAVI* wma, LPMMCKINFO mmck,
if
(
wma
->
lpWaveFormat
)
{
if
(
alb
->
numAudioBlocks
>=
alb
->
numAudioAllocated
)
{
alb
->
numAudioAllocated
+=
32
;
wma
->
lpAudioIndex
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
wma
->
lpAudioIndex
,
alb
->
numAudioAllocated
*
sizeof
(
struct
MMIOPos
));
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
;
}
wma
->
lpAudioIndex
[
alb
->
numAudioBlocks
].
dwOffset
=
mmck
->
dwDataOffset
;
...
...
@@ -298,12 +301,7 @@ BOOL MCIAVI_GetInfo(WINE_MCIAVI* wma)
return
FALSE
;
}
wma
->
dwPlayableAudioBlocks
=
0
;
wma
->
lpAudioIndex
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
wma
->
dwPlayableVideoFrames
*
sizeof
(
struct
MMIOPos
));
if
(
!
wma
->
lpAudioIndex
)
{
WARN
(
"Can't alloc audio index array
\n
"
);
return
FALSE
;
}
wma
->
lpAudioIndex
=
NULL
;
alb
.
numAudioBlocks
=
alb
.
numVideoFrames
=
0
;
alb
.
inVideoSize
=
alb
.
inAudioSize
=
0
;
...
...
@@ -484,6 +482,8 @@ DWORD MCIAVI_OpenAudio(WINE_MCIAVI* wma, unsigned* nHdr, LPWAVEHDR* pWaveHdr)
void
MCIAVI_PlayAudioBlocks
(
WINE_MCIAVI
*
wma
,
unsigned
nHdr
,
LPWAVEHDR
waveHdr
)
{
if
(
!
wma
->
lpAudioIndex
)
return
;
TRACE
(
"%ld (ec=%lu)
\n
"
,
wma
->
lpAudioIndex
[
wma
->
dwCurrAudioBlock
].
dwOffset
,
wma
->
dwEventCount
);
/* push as many blocks as possible => audio gets priority */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment