winetest: Add the Wine build id to the version information.

oldstable
Alexandre Julliard 2008-03-27 16:47:31 +01:00
parent 7dfc5184e0
commit dfd6c1f21a
1 changed files with 4 additions and 0 deletions

View File

@ -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);