version/tests: Check the translation resource before testing.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
52931c7523
commit
e0b4a3527b
|
@ -25,6 +25,7 @@
|
||||||
#include "winbase.h"
|
#include "winbase.h"
|
||||||
#include "winerror.h"
|
#include "winerror.h"
|
||||||
#include "winnls.h"
|
#include "winnls.h"
|
||||||
|
#include "winuser.h"
|
||||||
#include "winver.h"
|
#include "winver.h"
|
||||||
#include "verrsrc.h"
|
#include "verrsrc.h"
|
||||||
#include "wine/test.h"
|
#include "wine/test.h"
|
||||||
|
@ -646,6 +647,17 @@ static void test_GetFileVersionInfoEx(void)
|
||||||
};
|
};
|
||||||
char desc[MAX_PATH];
|
char desc[MAX_PATH];
|
||||||
|
|
||||||
|
mod = GetModuleHandleA("kernel32.dll");
|
||||||
|
assert(mod);
|
||||||
|
|
||||||
|
if (!FindResourceExA(mod, (LPCSTR)RT_VERSION, (LPCSTR)VS_VERSION_INFO, lang) &&
|
||||||
|
!FindResourceExA(mod, (LPCSTR)RT_VERSION, (LPCSTR)VS_VERSION_INFO,
|
||||||
|
MAKELANGID(PRIMARYLANGID(lang),SUBLANG_NEUTRAL)))
|
||||||
|
{
|
||||||
|
skip("Translation is not available\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
size = GetFileVersionInfoSizeW(kernel32W, NULL);
|
size = GetFileVersionInfoSizeW(kernel32W, NULL);
|
||||||
ok(size, "GetFileVersionInfoSize(kernel32) error %u\n", GetLastError());
|
ok(size, "GetFileVersionInfoSize(kernel32) error %u\n", GetLastError());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue