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
b296b042
Commit
b296b042
authored
Jul 26, 2005
by
Paul Vriens
Committed by
Alexandre Julliard
Jul 26, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward GetFileVersionInfoA to GetFileVersionInfoW.
parent
96e052b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
48 deletions
+29
-48
info.c
dlls/version/info.c
+29
-48
No files found.
dlls/version/info.c
View file @
b296b042
...
...
@@ -562,62 +562,22 @@ DWORD WINAPI GetFileVersionInfoSizeW( LPCWSTR filename, LPDWORD handle )
* GetFileVersionInfoSizeA [VERSION.@]
*/
DWORD
WINAPI
GetFileVersionInfoSizeA
(
LPCSTR
filename
,
LPDWORD
handle
)
{
UNICODE_STRING
filenameW
;
{
UNICODE_STRING
filenameW
;
DWORD
retval
;
TRACE
(
"(%s,%p)
\n
"
,
debugstr_a
(
filename
),
handle
);
if
(
filename
)
RtlCreateUnicodeStringFromAsciiz
(
&
filenameW
,
filename
);
else
filenameW
.
Buffer
=
NULL
;
retval
=
GetFileVersionInfoSizeW
(
filenameW
.
Buffer
,
handle
);
RtlFreeUnicodeString
(
&
filenameW
);
return
retval
;
}
/***********************************************************************
* GetFileVersionInfoA [VERSION.@]
*/
BOOL
WINAPI
GetFileVersionInfoA
(
LPCSTR
filename
,
DWORD
handle
,
DWORD
datasize
,
LPVOID
data
)
{
UNICODE_STRING
filenameW
;
DWORD
len
;
if
(
filename
)
RtlCreateUnicodeStringFromAsciiz
(
&
filenameW
,
filename
);
else
filenameW
.
Buffer
=
NULL
;
TRACE
(
"(%s,%ld,size=%ld,data=%p)
\n
"
,
debugstr_a
(
filename
),
handle
,
datasize
,
data
);
retval
=
GetFileVersionInfoSizeW
(
filenameW
.
Buffer
,
handle
);
if
(
!
data
)
{
SetLastError
(
ERROR_INVALID_DATA
);
return
FALSE
;
}
if
(
filename
)
RtlCreateUnicodeStringFromAsciiz
(
&
filenameW
,
filename
);
else
filenameW
.
Buffer
=
NULL
;
len
=
VERSION_GetFileVersionInfo_PE
(
filenameW
.
Buffer
,
datasize
,
data
);
/* 0xFFFFFFFF means: file is a PE module, but VERSION_INFO not found */
RtlFreeUnicodeString
(
&
filenameW
);
if
(
len
==
0xFFFFFFFF
)
{
SetLastError
(
ERROR_RESOURCE_DATA_NOT_FOUND
);
return
FALSE
;
}
if
(
!
len
)
{
len
=
VERSION_GetFileVersionInfo_16
(
filename
,
datasize
,
data
);
/* 0xFFFFFFFF means: file exists, but VERSION_INFO not found */
if
(
!
len
||
len
==
0xFFFFFFFF
)
{
SetLastError
(
ERROR_RESOURCE_DATA_NOT_FOUND
);
return
FALSE
;
}
}
/* Don't convert a possible win32 to a win16 stucture, Windows always uses win32
* for storing the structure on a unicode enabled system
*/
SetLastError
(
0
);
return
TRUE
;
return
retval
;
}
/***********************************************************************
...
...
@@ -675,6 +635,27 @@ BOOL WINAPI GetFileVersionInfoW( LPCWSTR filename, DWORD handle,
return
TRUE
;
}
/***********************************************************************
* GetFileVersionInfoA [VERSION.@]
*/
BOOL
WINAPI
GetFileVersionInfoA
(
LPCSTR
filename
,
DWORD
handle
,
DWORD
datasize
,
LPVOID
data
)
{
UNICODE_STRING
filenameW
;
BOOL
retval
;
TRACE
(
"(%s,%ld,size=%ld,data=%p)
\n
"
,
debugstr_a
(
filename
),
handle
,
datasize
,
data
);
if
(
filename
)
RtlCreateUnicodeStringFromAsciiz
(
&
filenameW
,
filename
);
else
filenameW
.
Buffer
=
NULL
;
retval
=
GetFileVersionInfoW
(
filenameW
.
Buffer
,
handle
,
datasize
,
data
);
return
retval
;
}
/***********************************************************************
* VersionInfo16_FindChild [internal]
...
...
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