66std::map<E_MODULE, HMODULE>
mod;
67std::map<E_STRING, PART_TEST>
parts;
94 for (
auto&
pair : s_pairs)
143 for (
UINT i = 0;
i < (uID & 0x0F);
i++)
p += *
p + 1;
145 int len = (*
p > cchBufferMax ? cchBufferMax : *
p);
218 skip(
"No module for test %d\n",
p.first);
227 ok(
p.second.nParts ==
p.second.gotParts,
"Locale 0x%lX: Num parts mismatch %d - expected %lu, got %lu\n",
228 curLcid,
p.first,
p.second.nParts,
p.second.gotParts);
243 if (
s.nParts !=
s.gotParts)
269 ?
"No module" :
"Invalid data",
match.p1.Num);
276 ?
"No module" :
"Invalid data",
match.p2.Num);
280 ok(
wcscmp(szP1, szP2) == 0,
"Locale 0x%lX: Mismatching pairs %u:%u / %u:%u '%S' vs. '%S'\n",
300 std::map<E_MODULE, LPCWSTR> lib;
301#define ADD_LIB(eModule, pszPath) lib.insert(std::make_pair(eModule, pszPath))
static void TEST_NumParts(void)
#define ADD_LIB(eModule, pszPath)
static void SetLocale(_In_ LCID lcid)
static DWORD CountParts(_In_ LPWSTR str)
static int GetLocalisedText(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_ LPWSTR lpBuffer, _In_ int cchBufferMax)
static BOOL CALLBACK find_locale_id_callback(_In_ HMODULE hModule, _In_ LPCWSTR type, _In_ LPCWSTR name, _In_ LANGID lang, _In_ LPARAM lParam)
static void TEST_LocaleTests(void)
static int LoadStringWrapW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_ LPWSTR lpBuffer, _In_ int cchBufferMax)
static BOOL LoadPart(_In_ PART *p, _Out_ LPWSTR str, _In_ SIZE_T size)
@ SH32_PROGRAM_FILES_COMMON
std::map< E_STRING, PART_TEST > parts
static void TEST_PartMatches(void)
std::map< E_MODULE, HMODULE > mod
static void InitParts(void)
static LPWSTR GetPart(_In_ LPWSTR str, _In_ SIZE_T num, _Out_ SIZE_T *len)
static PART_MATCH PartMatches[]
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
LPWSTR WINAPI StrStrW(LPCWSTR lpszStr, LPCWSTR lpszSearch)
#define GetCurrentDirectoryW(x, y)
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlags)
BOOL WINAPI SetCurrentDirectoryW(IN LPCWSTR lpPathName)
LANGID WINAPI SetThreadUILanguage(IN LANGID LangId)
BOOL WINAPI GetVersionExW(IN LPOSVERSIONINFOW lpVersionInformation)
LPVOID WINAPI LockResource(HGLOBAL handle)
HRSRC WINAPI FindResourceExW(HMODULE hModule, LPCWSTR type, LPCWSTR name, WORD lang)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
BOOL WINAPI EnumResourceLanguagesW(HMODULE hmod, LPCWSTR type, LPCWSTR name, ENUMRESLANGPROCW lpfun, LONG_PTR lparam)
BOOL WINAPI SetThreadLocale(LCID lcid)
GLuint GLuint GLsizei GLenum type
GLuint GLuint GLsizei count
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define memcpy(s1, s2, n)
#define ERROR_FILE_NOT_FOUND
#define MAKELCID(lgid, srtid)
static unsigned __int64 next
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
#define _WIN32_WINNT_WS03
STRSAFEAPI StringCchCopyNW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc, size_t cchToCopy)
ULONG dwOSVersionInfoSize
static const WCHAR lang[]
DWORD WINAPI GetLastError(void)
#define LOAD_LIBRARY_AS_DATAFILE
#define ERROR_INVALID_DATA
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define MAKEINTRESOURCEW(i)