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
55cc226d
Commit
55cc226d
authored
Aug 31, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 31, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set last error values compatible with Win9x implementation
of GetFileVersionInfoSize, Quicken installer depends on it.
parent
81a049bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
info.c
dlls/version/info.c
+17
-1
No files found.
dlls/version/info.c
View file @
55cc226d
...
...
@@ -512,6 +512,17 @@ DWORD WINAPI GetFileVersionInfoSizeW( LPCWSTR filename, LPDWORD handle )
if
(
handle
)
*
handle
=
0
;
if
(
!
filename
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
0
;
}
if
(
!*
filename
)
{
SetLastError
(
ERROR_BAD_PATHNAME
);
return
0
;
}
len
=
VERSION_GetFileVersionInfo_PE
(
filename
,
0
,
NULL
);
/* 0xFFFFFFFF means: file is a PE module, but VERSION_INFO not found */
if
(
len
==
0xFFFFFFFF
)
...
...
@@ -531,7 +542,12 @@ DWORD WINAPI GetFileVersionInfoSizeW( LPCWSTR filename, LPDWORD handle )
len
=
VERSION_GetFileVersionInfo_16
(
filenameA
,
0
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
filenameA
);
/* 0xFFFFFFFF means: file exists, but VERSION_INFO not found */
if
(
!
len
||
len
==
0xFFFFFFFF
)
if
(
!
len
)
{
SetLastError
(
ERROR_FILE_NOT_FOUND
);
return
0
;
}
if
(
len
==
0xFFFFFFFF
)
{
SetLastError
(
ERROR_RESOURCE_DATA_NOT_FOUND
);
return
0
;
...
...
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