mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 10:46:58 +00:00
[VERSION_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74856
This commit is contained in:
parent
c0c77a27b3
commit
d8eaddca44
1 changed files with 12 additions and 4 deletions
|
@ -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"
|
||||||
|
@ -772,6 +773,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());
|
||||||
|
|
||||||
|
@ -787,10 +799,8 @@ static void test_GetFileVersionInfoEx(void)
|
||||||
ok(size == 4, "VerQueryValue returned %u, expected 4\n", size);
|
ok(size == 4, "VerQueryValue returned %u, expected 4\n", size);
|
||||||
|
|
||||||
/* test default version resource */
|
/* test default version resource */
|
||||||
todo_wine_if(lang != english)
|
|
||||||
ok(LOWORD(translation) == lang, "got %u, expected lang is %u\n",
|
ok(LOWORD(translation) == lang, "got %u, expected lang is %u\n",
|
||||||
LOWORD(translation), lang);
|
LOWORD(translation), lang);
|
||||||
todo_wine
|
|
||||||
ok(HIWORD(translation) == unicode, "got %u, expected codepage is %u\n",
|
ok(HIWORD(translation) == unicode, "got %u, expected codepage is %u\n",
|
||||||
HIWORD(translation), unicode);
|
HIWORD(translation), unicode);
|
||||||
|
|
||||||
|
@ -825,14 +835,12 @@ static void test_GetFileVersionInfoEx(void)
|
||||||
translation = *(UINT *)p;
|
translation = *(UINT *)p;
|
||||||
|
|
||||||
/* test MUI version resource */
|
/* test MUI version resource */
|
||||||
todo_wine_if((test_flags[i] & FILE_VER_GET_LOCALISED) && lang != english)
|
|
||||||
if (test_flags[i] & FILE_VER_GET_LOCALISED)
|
if (test_flags[i] & FILE_VER_GET_LOCALISED)
|
||||||
ok(LOWORD(translation) == lang, "[%u] got %u, expected lang is %u\n",
|
ok(LOWORD(translation) == lang, "[%u] got %u, expected lang is %u\n",
|
||||||
i, LOWORD(translation), lang);
|
i, LOWORD(translation), lang);
|
||||||
else
|
else
|
||||||
ok(LOWORD(translation) == english, "[%u] got %u, expected lang is %u\n",
|
ok(LOWORD(translation) == english, "[%u] got %u, expected lang is %u\n",
|
||||||
i, LOWORD(translation), english);
|
i, LOWORD(translation), english);
|
||||||
todo_wine
|
|
||||||
ok(HIWORD(translation) == unicode, "[%u] got %u, expected codepage is %u\n",
|
ok(HIWORD(translation) == unicode, "[%u] got %u, expected codepage is %u\n",
|
||||||
i, HIWORD(translation), unicode);
|
i, HIWORD(translation), unicode);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue