Commit f4ebe20b authored by Alexandre Julliard's avatar Alexandre Julliard

ver: Use the 16-bit resource function in GetFileVersionInfo16().

The 32-bit functions no longer support LZ compression. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48557Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 1e5522ab
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "windef.h" #include "windef.h"
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "winternl.h" #include "winternl.h"
#include "winuser.h"
#include "winver.h" #include "winver.h"
#include "lzexpand.h" #include "lzexpand.h"
#include "wine/debug.h" #include "wine/debug.h"
...@@ -461,22 +462,23 @@ DWORD WINAPI GetFileResource16( LPCSTR lpszFileName, LPCSTR lpszResType, ...@@ -461,22 +462,23 @@ DWORD WINAPI GetFileResource16( LPCSTR lpszFileName, LPCSTR lpszResType,
/************************************************************************* /*************************************************************************
* GetFileVersionInfoSize [VER.6] * GetFileVersionInfoSize [VER.6]
*/ */
DWORD WINAPI GetFileVersionInfoSize16( LPCSTR lpszFileName, LPDWORD lpdwHandle ) DWORD WINAPI GetFileVersionInfoSize16( LPCSTR filename, LPDWORD handle )
{ {
TRACE("(%s, %p)\n", debugstr_a(lpszFileName), lpdwHandle ); DWORD offset;
return GetFileVersionInfoSizeA( lpszFileName, lpdwHandle );
TRACE("(%s, %p)\n", debugstr_a(filename), handle );
return GetFileResourceSize16( filename, (LPCSTR)RT_VERSION, (LPCSTR)VS_VERSION_INFO, &offset );
} }
/************************************************************************* /*************************************************************************
* GetFileVersionInfo [VER.7] * GetFileVersionInfo [VER.7]
*/ */
DWORD WINAPI GetFileVersionInfo16( LPCSTR lpszFileName, DWORD handle, DWORD WINAPI GetFileVersionInfo16( LPCSTR filename, DWORD handle, DWORD datasize, LPVOID data )
DWORD cbBuf, LPVOID lpvData )
{ {
TRACE("(%s, %08x, %d, %p)\n", TRACE("(%s, %08x, %d, %p)\n", debugstr_a(filename), handle, datasize, data );
debugstr_a(lpszFileName), handle, cbBuf, lpvData );
return GetFileVersionInfoA( lpszFileName, handle, cbBuf, lpvData ); return GetFileResource16( filename, (LPCSTR)RT_VERSION, (LPCSTR)VS_VERSION_INFO, 0, datasize, data );
} }
/************************************************************************* /*************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment