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
dae096f8
Commit
dae096f8
authored
Feb 09, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
Feb 09, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NULL is a valid argument as handle for GetFileVersionInfoSize32A.
parent
629b9fa4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
info.c
dlls/version/info.c
+4
-3
No files found.
dlls/version/info.c
View file @
dae096f8
...
...
@@ -264,7 +264,7 @@ void ConvertVersionInfo32To16( VS_VERSION_INFO32 *info32,
DWORD
WINAPI
GetFileVersionInfoSize32A
(
LPCSTR
filename
,
LPDWORD
handle
)
{
VS_FIXEDFILEINFO
*
vffi
;
DWORD
len
,
ret
;
DWORD
len
,
ret
,
offset
;
BYTE
buf
[
144
];
TRACE
(
ver
,
"(%s,%p)
\n
"
,
debugstr_a
(
filename
),
handle
);
...
...
@@ -272,15 +272,16 @@ DWORD WINAPI GetFileVersionInfoSize32A( LPCSTR filename, LPDWORD handle )
len
=
GetFileResourceSize32
(
filename
,
MAKEINTRESOURCE32A
(
VS_FILE_INFO
),
MAKEINTRESOURCE32A
(
VS_VERSION_INFO
),
handle
);
&
offset
);
if
(
!
len
)
return
0
;
ret
=
GetFileResource32
(
filename
,
MAKEINTRESOURCE32A
(
VS_FILE_INFO
),
MAKEINTRESOURCE32A
(
VS_VERSION_INFO
),
*
handle
,
sizeof
(
buf
),
buf
);
offset
,
sizeof
(
buf
),
buf
);
if
(
!
ret
)
return
0
;
if
(
handle
)
*
handle
=
offset
;
if
(
VersionInfoIs16
(
buf
)
)
vffi
=
(
VS_FIXEDFILEINFO
*
)
VersionInfo16_Value
(
(
VS_VERSION_INFO16
*
)
buf
);
...
...
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