From: Austin English Subject: version: partially implement GetFileVersionInfoSizeExA/W using GetFileVersionInfoSizeA/W (1/2) Message-Id: Date: Mon, 16 Feb 2015 22:04:31 -0600 Fixes https://bugs.winehq.org/show_bug.cgi?id=38090 -- -Austin
Fixes https://bugs.winehq.org/show_bug.cgi?id=38090

--
-Austin
From ff3229b63b55968803f4c1fca58bfda5eb7bf383 Mon Sep 17 00:00:00 2001 From: Austin English Date: Mon, 16 Feb 2015 19:55:54 -0800 Subject: [PATCH 1/2] version: partially implement GetFileVersionInfoSizeExA/W using GetFileVersionInfoSizeA/W --- dlls/version/version.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/dlls/version/version.c b/dlls/version/version.c index 680fa31..8165bc3 100644 --- a/dlls/version/version.c +++ b/dlls/version/version.c @@ -1619,9 +1619,13 @@ DWORD WINAPI VerInstallFileW( */ DWORD WINAPI GetFileVersionInfoSizeExA(DWORD flags, LPCSTR filename, LPDWORD handle) { - FIXME("stub: %u %s %p\n", flags, wine_dbgstr_a(filename), handle); - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return 0; + if(flags) { + FIXME("stub: %u %s %p\n", flags, wine_dbgstr_a(filename), handle); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return 0; + } + + return GetFileVersionInfoSizeA(filename, handle); } /****************************************************************************** @@ -1629,9 +1633,13 @@ DWORD WINAPI GetFileVersionInfoSizeExA(DWORD flags, LPCSTR filename, LPDWORD han */ DWORD WINAPI GetFileVersionInfoSizeExW(DWORD flags, LPCWSTR filename, LPDWORD handle) { - FIXME("stub: %u %s %p\n", flags, wine_dbgstr_w(filename), handle); - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return 0; + if(flags) { + FIXME("stub: %u %s %p\n", flags, wine_dbgstr_w(filename), handle); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return 0; + } + + return GetFileVersionInfoSizeW(filename, handle); } /****************************************************************************** -- 2.2.0