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
324acd5f
Commit
324acd5f
authored
May 21, 2015
by
Austin English
Committed by
Alexandre Julliard
May 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version: Move GetFileVersionInfo(A/W) implementation to GetFileVersionInfoEx(A/W).
parent
e3ae89e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
27 deletions
+28
-27
version.c
dlls/version/version.c
+28
-27
No files found.
dlls/version/version.c
View file @
324acd5f
...
...
@@ -722,10 +722,9 @@ DWORD WINAPI GetFileVersionInfoSizeExA( DWORD flags, LPCSTR filename, LPDWORD ha
}
/***********************************************************************
* GetFileVersionInfo
W
[VERSION.@]
* GetFileVersionInfo
ExW
[VERSION.@]
*/
BOOL
WINAPI
GetFileVersionInfoW
(
LPCWSTR
filename
,
DWORD
handle
,
DWORD
datasize
,
LPVOID
data
)
BOOL
WINAPI
GetFileVersionInfoExW
(
DWORD
flags
,
LPCWSTR
filename
,
DWORD
handle
,
DWORD
datasize
,
LPVOID
data
)
{
static
const
char
signature
[
4
]
=
"FE2X"
;
DWORD
len
,
offset
,
magic
=
1
;
...
...
@@ -734,6 +733,13 @@ BOOL WINAPI GetFileVersionInfoW( LPCWSTR filename, DWORD handle,
HMODULE
hModule
;
VS_VERSION_INFO_STRUCT32
*
vvis
=
data
;
if
(
flags
)
{
FIXME
(
"stub: %x %s %u %u %p
\n
"
,
flags
,
wine_dbgstr_w
(
filename
),
handle
,
datasize
,
data
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
0
;
}
TRACE
(
"(%s,%d,size=%d,data=%p)
\n
"
,
debugstr_w
(
filename
),
handle
,
datasize
,
data
);
...
...
@@ -797,10 +803,9 @@ BOOL WINAPI GetFileVersionInfoW( LPCWSTR filename, DWORD handle,
}
/***********************************************************************
* GetFileVersionInfo
A
[VERSION.@]
* GetFileVersionInfo
ExA
[VERSION.@]
*/
BOOL
WINAPI
GetFileVersionInfoA
(
LPCSTR
filename
,
DWORD
handle
,
DWORD
datasize
,
LPVOID
data
)
BOOL
WINAPI
GetFileVersionInfoExA
(
DWORD
flags
,
LPCSTR
filename
,
DWORD
handle
,
DWORD
datasize
,
LPVOID
data
)
{
UNICODE_STRING
filenameW
;
BOOL
retval
;
...
...
@@ -813,7 +818,7 @@ BOOL WINAPI GetFileVersionInfoA( LPCSTR filename, DWORD handle,
else
filenameW
.
Buffer
=
NULL
;
retval
=
GetFileVersionInfo
W
(
filenameW
.
Buffer
,
handle
,
datasize
,
data
);
retval
=
GetFileVersionInfo
ExW
(
flags
,
filenameW
.
Buffer
,
handle
,
datasize
,
data
);
RtlFreeUnicodeString
(
&
filenameW
);
...
...
@@ -821,6 +826,22 @@ BOOL WINAPI GetFileVersionInfoA( LPCSTR filename, DWORD handle,
}
/***********************************************************************
* GetFileVersionInfoW [VERSION.@]
*/
BOOL
WINAPI
GetFileVersionInfoW
(
LPCWSTR
filename
,
DWORD
handle
,
DWORD
datasize
,
LPVOID
data
)
{
return
GetFileVersionInfoExW
(
0
,
filename
,
handle
,
datasize
,
data
);
}
/***********************************************************************
* GetFileVersionInfoA [VERSION.@]
*/
BOOL
WINAPI
GetFileVersionInfoA
(
LPCSTR
filename
,
DWORD
handle
,
DWORD
datasize
,
LPVOID
data
)
{
return
GetFileVersionInfoExA
(
0
,
filename
,
handle
,
datasize
,
data
);
}
/***********************************************************************
* VersionInfo16_FindChild [internal]
*/
static
const
VS_VERSION_INFO_STRUCT16
*
VersionInfo16_FindChild
(
const
VS_VERSION_INFO_STRUCT16
*
info
,
...
...
@@ -1636,23 +1657,3 @@ DWORD WINAPI VerInstallFileW(
HeapFree
(
GetProcessHeap
(),
0
,
wcurd
);
return
ret
;
}
/******************************************************************************
* GetFileVersionInfoExA [VERSION.@]
*/
BOOL
WINAPI
GetFileVersionInfoExA
(
DWORD
flags
,
LPCSTR
filename
,
DWORD
handle
,
DWORD
len
,
LPVOID
data
)
{
FIXME
(
"stub: %u %s %u %u %p
\n
"
,
flags
,
wine_dbgstr_a
(
filename
),
handle
,
len
,
data
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
0
;
}
/******************************************************************************
* GetFileVersionInfoExW [VERSION.@]
*/
BOOL
WINAPI
GetFileVersionInfoExW
(
DWORD
flags
,
LPCWSTR
filename
,
DWORD
handle
,
DWORD
len
,
LPVOID
data
)
{
FIXME
(
"stub: %u %s %u %u %p
\n
"
,
flags
,
wine_dbgstr_w
(
filename
),
handle
,
len
,
data
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
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