From: Austin English Subject: version: partially implement GetFileVersionInfoExA/W using GetFileVersionInfoA/W (2/2) Message-Id: Date: Mon, 16 Feb 2015 22:05:20 -0600 Should fix https://bugs.winehq.org/show_bug.cgi?id=38098 -- -Austin
Should fix https://bugs.winehq.org/show_bug.cgi?id=38098

--
-Austin
From 5afa72c56f142ac3b781f7bcbd8abfa02e5a7e11 Mon Sep 17 00:00:00 2001 From: Austin English Date: Mon, 16 Feb 2015 20:02:48 -0800 Subject: [PATCH 2/2] version: partially implement GetFileVersionInfoExA/W using GetFileVersionInfoA/W --- dlls/version/version.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/dlls/version/version.c b/dlls/version/version.c index 8165bc3..d9ecb1c 100644 --- a/dlls/version/version.c +++ b/dlls/version/version.c @@ -1645,19 +1645,27 @@ DWORD WINAPI GetFileVersionInfoSizeExW(DWORD flags, LPCWSTR filename, LPDWORD ha /****************************************************************************** * GetFileVersionInfoExA [VERSION.@] */ -BOOL WINAPI GetFileVersionInfoExA(DWORD flags, LPCSTR filename, DWORD handle, DWORD len, LPVOID data) +BOOL WINAPI GetFileVersionInfoExA(DWORD flags, LPCSTR filename, DWORD handle, DWORD datasize, 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; + if(flags) { + FIXME("stub: %u %s %u %u %p\n", flags, wine_dbgstr_a(filename), handle, datasize, data); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return 0; + } + + return GetFileVersionInfoA(filename, handle, datasize, data); } /****************************************************************************** * GetFileVersionInfoExW [VERSION.@] */ -BOOL WINAPI GetFileVersionInfoExW(DWORD flags, LPCWSTR filename, DWORD handle, DWORD len, LPVOID data) +BOOL WINAPI GetFileVersionInfoExW(DWORD flags, LPCWSTR filename, DWORD handle, DWORD datasize, 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; + if(flags) { + FIXME("stub: %u %s %u %u %p\n", flags, wine_dbgstr_w(filename), handle, datasize, data); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return 0; + } + + return GetFileVersionInfoW(filename, handle, datasize, data); } -- 2.2.0