winetest: Add the Wine build id to the version information.
authorAlexandre Julliard <julliard@winehq.org>
Thu, 27 Mar 2008 15:47:31 +0000 (16:47 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 27 Mar 2008 15:47:31 +0000 (16:47 +0100)
programs/winetest/main.c

index 41879b4ef418acb41790b2c99471b805ac933259..c134f93501c44ead10681b6b682c6581fb250a8d 100644 (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);