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
8e1335b3
Commit
8e1335b3
authored
Feb 13, 2017
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Feb 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version: Ignore flag values in Ex functions.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a83c6503
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
21 deletions
+11
-21
version.c
dlls/version/version.c
+11
-21
No files found.
dlls/version/version.c
View file @
8e1335b3
...
@@ -628,14 +628,7 @@ DWORD WINAPI GetFileVersionInfoSizeExW( DWORD flags, LPCWSTR filename, LPDWORD h
...
@@ -628,14 +628,7 @@ DWORD WINAPI GetFileVersionInfoSizeExW( DWORD flags, LPCWSTR filename, LPDWORD h
HMODULE
hModule
;
HMODULE
hModule
;
OFSTRUCT
ofs
;
OFSTRUCT
ofs
;
if
(
flags
)
TRACE
(
"(0x%x,%s,%p)
\n
"
,
flags
,
debugstr_w
(
filename
),
handle
);
{
FIXME
(
"stub: %x %s %p
\n
"
,
flags
,
wine_dbgstr_w
(
filename
),
handle
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
0
;
}
TRACE
(
"(%s,%p)
\n
"
,
debugstr_w
(
filename
),
handle
);
if
(
handle
)
*
handle
=
0
;
if
(
handle
)
*
handle
=
0
;
...
@@ -649,6 +642,8 @@ DWORD WINAPI GetFileVersionInfoSizeExW( DWORD flags, LPCWSTR filename, LPDWORD h
...
@@ -649,6 +642,8 @@ DWORD WINAPI GetFileVersionInfoSizeExW( DWORD flags, LPCWSTR filename, LPDWORD h
SetLastError
(
ERROR_BAD_PATHNAME
);
SetLastError
(
ERROR_BAD_PATHNAME
);
return
0
;
return
0
;
}
}
if
(
flags
)
FIXME
(
"flags 0x%x ignored
\n
"
,
flags
);
if
((
lzfd
=
LZOpenFileW
(
(
LPWSTR
)
filename
,
&
ofs
,
OF_READ
))
!=
HFILE_ERROR
)
if
((
lzfd
=
LZOpenFileW
(
(
LPWSTR
)
filename
,
&
ofs
,
OF_READ
))
!=
HFILE_ERROR
)
{
{
...
@@ -707,14 +702,14 @@ DWORD WINAPI GetFileVersionInfoSizeExA( DWORD flags, LPCSTR filename, LPDWORD ha
...
@@ -707,14 +702,14 @@ DWORD WINAPI GetFileVersionInfoSizeExA( DWORD flags, LPCSTR filename, LPDWORD ha
UNICODE_STRING
filenameW
;
UNICODE_STRING
filenameW
;
DWORD
retval
;
DWORD
retval
;
TRACE
(
"(
%s,%p)
\n
"
,
debugstr_a
(
filename
),
handle
);
TRACE
(
"(
0x%x,%s,%p)
\n
"
,
flags
,
debugstr_a
(
filename
),
handle
);
if
(
filename
)
if
(
filename
)
RtlCreateUnicodeStringFromAsciiz
(
&
filenameW
,
filename
);
RtlCreateUnicodeStringFromAsciiz
(
&
filenameW
,
filename
);
else
else
filenameW
.
Buffer
=
NULL
;
filenameW
.
Buffer
=
NULL
;
retval
=
GetFileVersionInfoSizeExW
(
0
,
filenameW
.
Buffer
,
handle
);
retval
=
GetFileVersionInfoSizeExW
(
flags
,
filenameW
.
Buffer
,
handle
);
RtlFreeUnicodeString
(
&
filenameW
);
RtlFreeUnicodeString
(
&
filenameW
);
...
@@ -733,21 +728,16 @@ BOOL WINAPI GetFileVersionInfoExW( DWORD flags, LPCWSTR filename, DWORD handle,
...
@@ -733,21 +728,16 @@ BOOL WINAPI GetFileVersionInfoExW( DWORD flags, LPCWSTR filename, DWORD handle,
HMODULE
hModule
;
HMODULE
hModule
;
VS_VERSION_INFO_STRUCT32
*
vvis
=
data
;
VS_VERSION_INFO_STRUCT32
*
vvis
=
data
;
if
(
flags
)
TRACE
(
"(0x%x,%s,%d,size=%d,data=%p)
\n
"
,
{
flags
,
debugstr_w
(
filename
),
handle
,
datasize
,
data
);
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
);
if
(
!
data
)
if
(
!
data
)
{
{
SetLastError
(
ERROR_INVALID_DATA
);
SetLastError
(
ERROR_INVALID_DATA
);
return
FALSE
;
return
FALSE
;
}
}
if
(
flags
)
FIXME
(
"flags 0x%x ignored
\n
"
,
flags
);
if
((
lzfd
=
LZOpenFileW
(
(
LPWSTR
)
filename
,
&
ofs
,
OF_READ
))
!=
HFILE_ERROR
)
if
((
lzfd
=
LZOpenFileW
(
(
LPWSTR
)
filename
,
&
ofs
,
OF_READ
))
!=
HFILE_ERROR
)
{
{
...
@@ -810,8 +800,8 @@ BOOL WINAPI GetFileVersionInfoExA( DWORD flags, LPCSTR filename, DWORD handle, D
...
@@ -810,8 +800,8 @@ BOOL WINAPI GetFileVersionInfoExA( DWORD flags, LPCSTR filename, DWORD handle, D
UNICODE_STRING
filenameW
;
UNICODE_STRING
filenameW
;
BOOL
retval
;
BOOL
retval
;
TRACE
(
"(%s,%d,size=%d,data=%p)
\n
"
,
TRACE
(
"(
0x%x,
%s,%d,size=%d,data=%p)
\n
"
,
debugstr_a
(
filename
),
handle
,
datasize
,
data
);
flags
,
debugstr_a
(
filename
),
handle
,
datasize
,
data
);
if
(
filename
)
if
(
filename
)
RtlCreateUnicodeStringFromAsciiz
(
&
filenameW
,
filename
);
RtlCreateUnicodeStringFromAsciiz
(
&
filenameW
,
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