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
07e835ff
Commit
07e835ff
authored
Jun 24, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jun 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Open resource files in binary mode.
parent
40089435
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
res16.c
tools/winebuild/res16.c
+1
-1
res32.c
tools/winebuild/res32.c
+1
-1
No files found.
tools/winebuild/res16.c
View file @
07e835ff
...
...
@@ -168,7 +168,7 @@ void load_res16_file( const char *name, DLLSPEC *spec )
void
*
base
;
struct
stat
st
;
if
((
fd
=
open
(
name
,
O_RDONLY
))
==
-
1
)
fatal_perror
(
"Cannot open %s"
,
name
);
if
((
fd
=
open
(
name
,
O_RDONLY
|
O_BINARY
))
==
-
1
)
fatal_perror
(
"Cannot open %s"
,
name
);
if
((
fstat
(
fd
,
&
st
)
==
-
1
))
fatal_perror
(
"Cannot stat %s"
,
name
);
if
(
!
st
.
st_size
)
fatal_error
(
"%s is an empty file
\n
"
,
name
);
#ifdef HAVE_MMAP
...
...
tools/winebuild/res32.c
View file @
07e835ff
...
...
@@ -269,7 +269,7 @@ int load_res32_file( const char *name, DLLSPEC *spec )
void
*
base
;
struct
stat
st
;
if
((
fd
=
open
(
name
,
O_RDONLY
))
==
-
1
)
fatal_perror
(
"Cannot open %s"
,
name
);
if
((
fd
=
open
(
name
,
O_RDONLY
|
O_BINARY
))
==
-
1
)
fatal_perror
(
"Cannot open %s"
,
name
);
if
((
fstat
(
fd
,
&
st
)
==
-
1
))
fatal_perror
(
"Cannot stat %s"
,
name
);
if
(
!
st
.
st_size
)
fatal_error
(
"%s is an empty file
\n
"
,
name
);
#ifdef HAVE_MMAP
...
...
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