winetest: Add the Wine build id to the version information.
This commit is contained in:
parent
7dfc5184e0
commit
dfd6c1f21a
|
@ -132,6 +132,7 @@ static void print_version (void)
|
|||
OSVERSIONINFOEX ver;
|
||||
BOOL ext;
|
||||
int is_win2k3_r2;
|
||||
const char *(*wine_get_build_id)(void);
|
||||
|
||||
ver.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
|
||||
if (!(ext = GetVersionEx ((OSVERSIONINFO *) &ver)))
|
||||
|
@ -148,6 +149,9 @@ static void print_version (void)
|
|||
ver.dwMajorVersion, ver.dwMinorVersion, ver.dwBuildNumber,
|
||||
ver.dwPlatformId, ver.szCSDVersion);
|
||||
|
||||
wine_get_build_id = (void *)GetProcAddress(GetModuleHandleA("ntdll.dll"), "wine_get_build_id");
|
||||
if (wine_get_build_id) xprintf( " WineBuild=%s\n", wine_get_build_id() );
|
||||
|
||||
is_win2k3_r2 = GetSystemMetrics(SM_SERVERR2);
|
||||
if(is_win2k3_r2)
|
||||
xprintf(" R2 build number=%d\n", is_win2k3_r2);
|
||||
|
|
Loading…
Reference in New Issue