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
a4b816c7
Commit
a4b816c7
authored
Mar 11, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Use HeapAlloc/Free instead of LocalAlloc/Free.
parent
8ed1ca3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
tmpfile.c
dlls/avifil32/tmpfile.c
+4
-5
No files found.
dlls/avifil32/tmpfile.c
View file @
a4b816c7
...
...
@@ -26,7 +26,6 @@
#include "winuser.h"
#include "winnls.h"
#include "winerror.h"
#include "windowsx.h"
#include "mmsystem.h"
#include "vfw.h"
...
...
@@ -77,7 +76,7 @@ PAVIFILE AVIFILE_CreateAVITempFile(int nStreams, PAVISTREAM *ppStreams) {
ITmpFileImpl
*
tmpFile
;
int
i
;
tmpFile
=
LocalAlloc
(
LPTR
,
sizeof
(
ITmpFileImpl
));
tmpFile
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ITmpFileImpl
));
if
(
tmpFile
==
NULL
)
return
NULL
;
...
...
@@ -86,9 +85,9 @@ PAVIFILE AVIFILE_CreateAVITempFile(int nStreams, PAVISTREAM *ppStreams) {
memset
(
&
tmpFile
->
fInfo
,
0
,
sizeof
(
tmpFile
->
fInfo
));
tmpFile
->
fInfo
.
dwStreams
=
nStreams
;
tmpFile
->
ppStreams
=
LocalAlloc
(
LPTR
,
nStreams
*
sizeof
(
PAVISTREAM
));
tmpFile
->
ppStreams
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nStreams
*
sizeof
(
PAVISTREAM
));
if
(
tmpFile
->
ppStreams
==
NULL
)
{
LocalFree
((
HLOCAL
)
tmpFile
);
HeapFree
(
GetProcessHeap
(),
0
,
tmpFile
);
return
NULL
;
}
...
...
@@ -177,7 +176,7 @@ static ULONG WINAPI ITmpFile_fnRelease(IAVIFile *iface)
}
}
LocalFree
((
HLOCAL
)
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
0
;
}
...
...
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