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
1dc62b7e
Commit
1dc62b7e
authored
Aug 14, 2002
by
François Gouget
Committed by
Alexandre Julliard
Aug 14, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NT sets the error code to ERROR_RESOURCE_DATA_NOT_FOUND if the file
exists but does not contain version information.
parent
c7b80611
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
info.c
dlls/version/info.c
+10
-2
No files found.
dlls/version/info.c
View file @
1dc62b7e
...
...
@@ -440,11 +440,19 @@ DWORD WINAPI GetFileVersionInfoSizeA( LPCSTR filename, LPDWORD handle )
len
=
VERSION_GetFileVersionInfo_PE
(
filename
,
handle
,
0
,
NULL
);
/* 0xFFFFFFFF means: file exists, but VERSION_INFO not found */
if
(
len
==
0xFFFFFFFF
)
return
0
;
if
(
len
==
0xFFFFFFFF
)
{
SetLastError
(
ERROR_RESOURCE_DATA_NOT_FOUND
);
return
0
;
}
if
(
len
)
return
len
;
len
=
VERSION_GetFileVersionInfo_16
(
filename
,
handle
,
0
,
NULL
);
/* 0xFFFFFFFF means: file exists, but VERSION_INFO not found */
if
(
len
==
0xFFFFFFFF
)
return
0
;
if
(
len
==
0xFFFFFFFF
)
{
SetLastError
(
ERROR_RESOURCE_DATA_NOT_FOUND
);
return
0
;
}
if
(
len
)
return
len
;
len
=
GetFileResourceSize16
(
filename
,
...
...
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