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:
parent
78bd41afb3
commit
472763c523
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue