Commit e0b4a352 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

version/tests: Check the translation resource before testing.

parent 52931c75
...@@ -25,6 +25,7 @@ ...@@ -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) ...@@ -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());
......
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