Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
417067bb
Commit
417067bb
authored
Mar 18, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Use HeapAlloc instead of GlobalAlloc. Eliminate windowsx.h.
parent
ca4f8dd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
avifile.c
dlls/avifil32/avifile.c
+4
-7
No files found.
dlls/avifil32/avifile.c
View file @
417067bb
...
...
@@ -40,7 +40,6 @@
#include "winuser.h"
#include "winnls.h"
#include "winerror.h"
#include "windowsx.h"
#include "mmsystem.h"
#include "vfw.h"
...
...
@@ -1341,7 +1340,7 @@ static HRESULT WINAPI IAVIStream_fnWriteData(IAVIStream *iface, DWORD fcc,
return
AVIERR_UNSUPPORTED
;
}
This
->
lpHandlerData
=
GlobalAllocPtr
(
GMEM_MOVEABLE
,
size
);
This
->
lpHandlerData
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
This
->
lpHandlerData
==
NULL
)
return
AVIERR_MEMORY
;
This
->
cbHandlerData
=
size
;
...
...
@@ -1576,7 +1575,7 @@ static void AVIFILE_DestructAVIStream(IAVIStreamImpl *This)
This
->
cbBuffer
=
0
;
}
if
(
This
->
lpHandlerData
!=
NULL
)
{
GlobalFreePtr
(
This
->
lpHandlerData
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
lpHandlerData
);
This
->
lpHandlerData
=
NULL
;
This
->
cbHandlerData
=
0
;
}
...
...
@@ -1687,8 +1686,7 @@ static HRESULT AVIFILE_LoadFile(IAVIFileImpl *This)
case
ckidSTREAMHANDLERDATA
:
if
(
pStream
->
lpHandlerData
!=
NULL
)
return
AVIERR_BADFORMAT
;
pStream
->
lpHandlerData
=
GlobalAllocPtr
(
GMEM_DDESHARE
|
GMEM_MOVEABLE
,
ck
.
cksize
);
pStream
->
lpHandlerData
=
HeapAlloc
(
GetProcessHeap
(),
0
,
ck
.
cksize
);
if
(
pStream
->
lpHandlerData
==
NULL
)
return
AVIERR_MEMORY
;
pStream
->
cbHandlerData
=
ck
.
cksize
;
...
...
@@ -1702,8 +1700,7 @@ static HRESULT AVIFILE_LoadFile(IAVIFileImpl *This)
if
(
ck
.
cksize
==
0
)
break
;
pStream
->
lpFormat
=
GlobalAllocPtr
(
GMEM_DDESHARE
|
GMEM_MOVEABLE
,
ck
.
cksize
);
pStream
->
lpFormat
=
HeapAlloc
(
GetProcessHeap
(),
0
,
ck
.
cksize
);
if
(
pStream
->
lpFormat
==
NULL
)
return
AVIERR_MEMORY
;
pStream
->
cbFormat
=
ck
.
cksize
;
...
...
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