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
1a61a03b
Commit
1a61a03b
authored
Nov 28, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixes.
parent
08afc1a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
bin2res.c
tools/bin2res.c
+4
-2
No files found.
tools/bin2res.c
View file @
1a61a03b
...
@@ -122,7 +122,7 @@ int insert_hex (char * infile, FILE * outfile)
...
@@ -122,7 +122,7 @@ int insert_hex (char * infile, FILE * outfile)
if
(
++
i
>=
st
.
st_size
)
break
;
if
(
++
i
>=
st
.
st_size
)
break
;
fprintf
(
outfile
,
"%s"
,
(
i
==
(
i
&
0xfffffff0
))
?
"'
\n
'"
:
" "
);
fprintf
(
outfile
,
"%s"
,
(
i
==
(
i
&
0xfffffff0
))
?
"'
\n
'"
:
" "
);
}
}
fprintf
(
outfile
,
"'
\n
}
\n
"
);
fprintf
(
outfile
,
"'
\n
}"
);
munmap
(
p_in_file
,
st
.
st_size
);
munmap
(
p_in_file
,
st
.
st_size
);
close
(
fd
);
close
(
fd
);
return
1
;
return
1
;
...
@@ -141,7 +141,9 @@ int convert_to_res ()
...
@@ -141,7 +141,9 @@ int convert_to_res ()
time_t
tinput
;
time_t
tinput
;
long
startpos
,
endpos
;
long
startpos
,
endpos
;
tmpnam
(
tmpfile
);
strcpy
(
tmpfile
,
g_lpstrInputFile
);
strcat
(
tmpfile
,
"-tmp"
);
/* FIXME: should use better tmp name and create with O_EXCL */
if
(
(
ftemp
=
fopen
(
tmpfile
,
"w"
))
==
NULL
)
goto
error_open_file
;
if
(
(
ftemp
=
fopen
(
tmpfile
,
"w"
))
==
NULL
)
goto
error_open_file
;
if
(
(
fin
=
fopen
(
g_lpstrInputFile
,
"r"
))
==
NULL
||
stat
(
g_lpstrInputFile
,
&
st
))
goto
error_open_file
;
if
(
(
fin
=
fopen
(
g_lpstrInputFile
,
"r"
))
==
NULL
||
stat
(
g_lpstrInputFile
,
&
st
))
goto
error_open_file
;
...
...
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