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
f10be2e8
Commit
f10be2e8
authored
Nov 02, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iccvid: Use CRT allocation functions.
parent
e90e08b5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
iccvid.c
dlls/iccvid/iccvid.c
+8
-9
No files found.
dlls/iccvid/iccvid.c
View file @
f10be2e8
...
...
@@ -51,7 +51,6 @@
#include "iccvid_private.h"
#include "wine/debug.h"
#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
iccvid
);
...
...
@@ -353,7 +352,7 @@ static cinepak_info *decode_cinepak_init(void)
cinepak_info
*
cvinfo
;
int
i
;
cvinfo
=
heap_alloc
(
sizeof
(
cinepak_info
)
);
cvinfo
=
malloc
(
sizeof
(
cinepak_info
)
);
if
(
!
cvinfo
)
return
NULL
;
cvinfo
->
strip_num
=
0
;
...
...
@@ -374,10 +373,10 @@ static void free_cvinfo( cinepak_info *cvinfo )
for
(
i
=
0
;
i
<
cvinfo
->
strip_num
;
i
++
)
{
heap_
free
(
cvinfo
->
v4_codebook
[
i
]);
heap_
free
(
cvinfo
->
v1_codebook
[
i
]);
free
(
cvinfo
->
v4_codebook
[
i
]);
free
(
cvinfo
->
v1_codebook
[
i
]);
}
heap_
free
(
cvinfo
);
free
(
cvinfo
);
}
typedef
void
(
*
fn_cvid_v1
)(
unsigned
char
*
frm
,
unsigned
char
*
limit
,
...
...
@@ -481,13 +480,13 @@ static void decode_cinepak(cinepak_info *cvinfo, unsigned char *buf, int size,
for
(
i
=
cvinfo
->
strip_num
;
i
<
frame
.
strips
;
i
++
)
{
if
((
cvinfo
->
v4_codebook
[
i
]
=
heap_
alloc
(
sizeof
(
cvid_codebook
)
*
260
))
==
NULL
)
if
((
cvinfo
->
v4_codebook
[
i
]
=
m
alloc
(
sizeof
(
cvid_codebook
)
*
260
))
==
NULL
)
{
ERR
(
"CVID: codebook v4 alloc err
\n
"
);
return
;
}
if
((
cvinfo
->
v1_codebook
[
i
]
=
heap_
alloc
(
sizeof
(
cvid_codebook
)
*
260
))
==
NULL
)
if
((
cvinfo
->
v1_codebook
[
i
]
=
m
alloc
(
sizeof
(
cvid_codebook
)
*
260
))
==
NULL
)
{
ERR
(
"CVID: codebook v1 alloc err
\n
"
);
return
;
...
...
@@ -941,7 +940,7 @@ static LRESULT ICCVID_Close( ICCVID_Info *info )
return
0
;
if
(
info
->
cvinfo
)
free_cvinfo
(
info
->
cvinfo
);
heap_
free
(
info
);
free
(
info
);
return
1
;
}
...
...
@@ -1001,7 +1000,7 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
if
(
icinfo
&&
compare_fourcc
(
icinfo
->
fccType
,
ICTYPE_VIDEO
))
return
0
;
info
=
heap_alloc
(
sizeof
(
ICCVID_Info
)
);
info
=
malloc
(
sizeof
(
ICCVID_Info
)
);
if
(
info
)
{
info
->
dwMagic
=
ICCVID_MAGIC
;
...
...
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