kernelbase: Fix parameter order of FindResourceExW call for non-localized path.

Signed-off-by: Derek Lesho <dlesho@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Derek Lesho 2021-12-06 10:58:18 +01:00 committed by Alexandre Julliard
parent 78bd41afb3
commit 472763c523
1 changed files with 4 additions and 4 deletions

View File

@ -781,8 +781,8 @@ DWORD WINAPI GetFileVersionInfoSizeExW( DWORD flags, LPCWSTR filename, LPDWORD r
if (!(flags & FILE_VER_GET_LOCALISED)) if (!(flags & FILE_VER_GET_LOCALISED))
{ {
LANGID english = MAKELANGID( LANG_ENGLISH, SUBLANG_DEFAULT ); LANGID english = MAKELANGID( LANG_ENGLISH, SUBLANG_DEFAULT );
hRsrc = FindResourceExW( hModule, MAKEINTRESOURCEW(VS_VERSION_INFO), hRsrc = FindResourceExW( hModule, (LPWSTR)VS_FILE_INFO,
(LPWSTR)VS_FILE_INFO, english ); MAKEINTRESOURCEW(VS_VERSION_INFO), english );
} }
if (!hRsrc) if (!hRsrc)
hRsrc = FindResourceW( hModule, MAKEINTRESOURCEW(VS_VERSION_INFO), hRsrc = FindResourceW( hModule, MAKEINTRESOURCEW(VS_VERSION_INFO),
@ -887,8 +887,8 @@ BOOL WINAPI GetFileVersionInfoExW( DWORD flags, LPCWSTR filename, DWORD ignored,
if (!(flags & FILE_VER_GET_LOCALISED)) if (!(flags & FILE_VER_GET_LOCALISED))
{ {
LANGID english = MAKELANGID( LANG_ENGLISH, SUBLANG_DEFAULT ); LANGID english = MAKELANGID( LANG_ENGLISH, SUBLANG_DEFAULT );
hRsrc = FindResourceExW( hModule, MAKEINTRESOURCEW(VS_VERSION_INFO), hRsrc = FindResourceExW( hModule, (LPWSTR)VS_FILE_INFO,
(LPWSTR)VS_FILE_INFO, english ); MAKEINTRESOURCEW(VS_VERSION_INFO), english );
} }
if (!hRsrc) if (!hRsrc)
hRsrc = FindResourceW( hModule, MAKEINTRESOURCEW(VS_VERSION_INFO), hRsrc = FindResourceW( hModule, MAKEINTRESOURCEW(VS_VERSION_INFO),