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
13b9fee8
Commit
13b9fee8
authored
Nov 25, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version: Use BOOL type where appropriate.
parent
50d45a8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
version.c
dlls/version/version.c
+2
-2
No files found.
dlls/version/version.c
View file @
13b9fee8
...
@@ -235,7 +235,7 @@ static BOOL find_pe_resource( HFILE lzfd, DWORD *resLen, DWORD *resOff )
...
@@ -235,7 +235,7 @@ static BOOL find_pe_resource( HFILE lzfd, DWORD *resLen, DWORD *resOff )
/* Read in PE header */
/* Read in PE header */
pehdoffset
=
LZSeek
(
lzfd
,
0
,
SEEK_CUR
);
pehdoffset
=
LZSeek
(
lzfd
,
0
,
SEEK_CUR
);
len
=
LZRead
(
lzfd
,
(
LPSTR
)
&
pehd
,
sizeof
(
pehd
)
);
len
=
LZRead
(
lzfd
,
(
LPSTR
)
&
pehd
,
sizeof
(
pehd
)
);
if
(
len
<
sizeof
(
pehd
.
nt32
.
FileHeader
))
return
0
;
if
(
len
<
sizeof
(
pehd
.
nt32
.
FileHeader
))
return
FALSE
;
if
(
len
<
sizeof
(
pehd
))
memset
(
(
char
*
)
&
pehd
+
len
,
0
,
sizeof
(
pehd
)
-
len
);
if
(
len
<
sizeof
(
pehd
))
memset
(
(
char
*
)
&
pehd
+
len
,
0
,
sizeof
(
pehd
)
-
len
);
switch
(
pehd
.
nt32
.
OptionalHeader
.
Magic
)
switch
(
pehd
.
nt32
.
OptionalHeader
.
Magic
)
...
@@ -247,7 +247,7 @@ static BOOL find_pe_resource( HFILE lzfd, DWORD *resLen, DWORD *resOff )
...
@@ -247,7 +247,7 @@ static BOOL find_pe_resource( HFILE lzfd, DWORD *resLen, DWORD *resOff )
resDataDir
=
pehd
.
nt64
.
OptionalHeader
.
DataDirectory
+
IMAGE_DIRECTORY_ENTRY_RESOURCE
;
resDataDir
=
pehd
.
nt64
.
OptionalHeader
.
DataDirectory
+
IMAGE_DIRECTORY_ENTRY_RESOURCE
;
break
;
break
;
default:
default:
return
0
;
return
FALSE
;
}
}
if
(
!
resDataDir
->
Size
)
if
(
!
resDataDir
->
Size
)
...
...
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