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

Alexandre Julliard julliard at winehq.org
Thu Mar 27 15:43:21 CDT 2008


Module: wine
Branch: master
Commit: dfd6c1f21abd0cf1a8e757eb93b7ce9394582220
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dfd6c1f21abd0cf1a8e757eb93b7ce9394582220

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Mar 27 16:47:31 2008 +0100

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

---

 programs/winetest/main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/programs/winetest/main.c b/programs/winetest/main.c
index 41879b4..c134f93 100644
--- a/programs/winetest/main.c
+++ b/programs/winetest/main.c
@@ -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);




More information about the wine-cvs mailing list