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
c7183e83
Commit
c7183e83
authored
Jan 06, 2010
by
Marcin Baczyński
Committed by
Alexandre Julliard
Jan 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fnt2bdf: Remove superfluous void* casts.
parent
477117a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fnt2bdf.c
tools/fnt2bdf.c
+3
-3
No files found.
tools/fnt2bdf.c
View file @
c7183e83
...
...
@@ -290,7 +290,7 @@ static int parse_fnt_data(unsigned char* file_buffer, int length)
/* malloc size = (# chars) * sizeof(WinCharS) */
if
((
cpe_font_struct
.
dfCharTable
=
(
WinCharS
*
)
calloc
(
sizeof
(
WinCharS
),
l_len
))
==
NULL
)
if
((
cpe_font_struct
.
dfCharTable
=
calloc
(
sizeof
(
WinCharS
),
l_len
))
==
NULL
)
return
ERROR_MEMORY
;
/* NOW, convert them all to UNIX (lton) notation... */
...
...
@@ -649,7 +649,7 @@ static int get_resource_table(int fd, unsigned char** lpdata, int fsize)
}
else
return
FILE_ERROR
;
*
lpdata
=
(
unsigned
char
*
)
malloc
(
size
);
*
lpdata
=
malloc
(
size
);
if
(
*
lpdata
)
{
...
...
@@ -711,7 +711,7 @@ int main(int argc, char **argv)
length
=
return_data_value
(
dfShort
,
&
pFontStorage
->
length
)
<<
size_shift
;
offset
=
return_data_value
(
dfShort
,
&
pFontStorage
->
offset
)
<<
size_shift
;
if
(
!
(
lpfont
=
(
unsigned
char
*
)
realloc
(
lpfont
,
length
))
)
if
(
!
(
lpfont
=
realloc
(
lpfont
,
length
))
)
{
fprintf
(
stderr
,
"Memory allocation error.
\n
"
);
exit
(
1
);
...
...
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