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
d9873e23
Commit
d9873e23
authored
Dec 09, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iccvid: Rename the wrappers around HeapAlloc() &Co to use the standard names.
parent
7e8d79fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
iccvid.c
dlls/iccvid/iccvid.c
+11
-11
No files found.
dlls/iccvid/iccvid.c
View file @
d9873e23
...
...
@@ -82,12 +82,12 @@ typedef struct _ICCVID_Info
cinepak_info
*
cvinfo
;
}
ICCVID_Info
;
static
inline
LPVOID
ICCVID_Alloc
(
size_t
size
,
size_t
count
)
static
inline
LPVOID
heap_alloc
(
size_t
size
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
size
*
count
);
return
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
}
static
inline
BOOL
ICCVID_F
ree
(
LPVOID
ptr
)
static
inline
BOOL
heap_f
ree
(
LPVOID
ptr
)
{
return
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
}
...
...
@@ -338,7 +338,7 @@ static cinepak_info *decode_cinepak_init(void)
cinepak_info
*
cvinfo
;
int
i
;
cvinfo
=
ICCVID_Alloc
(
sizeof
(
cinepak_info
),
1
);
cvinfo
=
heap_alloc
(
sizeof
(
cinepak_info
)
);
if
(
!
cvinfo
)
return
NULL
;
cvinfo
->
strip_num
=
0
;
...
...
@@ -359,10 +359,10 @@ static void free_cvinfo( cinepak_info *cvinfo )
for
(
i
=
0
;
i
<
cvinfo
->
strip_num
;
i
++
)
{
ICCVID_F
ree
(
cvinfo
->
v4_codebook
[
i
]);
ICCVID_F
ree
(
cvinfo
->
v1_codebook
[
i
]);
heap_f
ree
(
cvinfo
->
v4_codebook
[
i
]);
heap_f
ree
(
cvinfo
->
v1_codebook
[
i
]);
}
ICCVID_F
ree
(
cvinfo
);
heap_f
ree
(
cvinfo
);
}
typedef
void
(
*
fn_cvid_v1
)(
unsigned
char
*
frm
,
unsigned
char
*
limit
,
...
...
@@ -457,13 +457,13 @@ static void decode_cinepak(cinepak_info *cvinfo, unsigned char *buf, int size,
for
(
i
=
cvinfo
->
strip_num
;
i
<
strips
;
i
++
)
{
if
((
cvinfo
->
v4_codebook
[
i
]
=
ICCVID_Alloc
(
sizeof
(
cvid_codebook
),
260
))
==
NULL
)
if
((
cvinfo
->
v4_codebook
[
i
]
=
heap_alloc
(
sizeof
(
cvid_codebook
)
*
260
))
==
NULL
)
{
ERR
(
"CVID: codebook v4 alloc err
\n
"
);
return
;
}
if
((
cvinfo
->
v1_codebook
[
i
]
=
ICCVID_Alloc
(
sizeof
(
cvid_codebook
),
260
))
==
NULL
)
if
((
cvinfo
->
v1_codebook
[
i
]
=
heap_alloc
(
sizeof
(
cvid_codebook
)
*
260
))
==
NULL
)
{
ERR
(
"CVID: codebook v1 alloc err
\n
"
);
return
;
...
...
@@ -918,7 +918,7 @@ static LRESULT ICCVID_Close( ICCVID_Info *info )
return
0
;
if
(
info
->
cvinfo
)
free_cvinfo
(
info
->
cvinfo
);
ICCVID_F
ree
(
info
);
heap_f
ree
(
info
);
return
1
;
}
...
...
@@ -978,7 +978,7 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
if
(
icinfo
&&
icinfo
->
fccType
!=
ICTYPE_VIDEO
)
return
0
;
info
=
ICCVID_Alloc
(
sizeof
(
ICCVID_Info
),
1
);
info
=
heap_alloc
(
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