From: Matteo Bruni mbruni@codeweavers.com
--- programs/winetest/main.c | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/programs/winetest/main.c b/programs/winetest/main.c index 8699ad5c50c..349a66b5c50 100644 --- a/programs/winetest/main.c +++ b/programs/winetest/main.c @@ -471,6 +471,8 @@ static void print_version (void) void (CDECL *wine_get_host_version)( const char **sysname, const char **release ); BOOL (WINAPI *pGetProductInfo)(DWORD, DWORD, DWORD, DWORD, DWORD *); NTSTATUS (WINAPI *pRtlGetVersion)(RTL_OSVERSIONINFOEXW *); + DWORD revision, size = sizeof(revision); + HKEY hkey;
ver.dwOSVersionInfoSize = sizeof(ver); if (!(ext = GetVersionExA ((OSVERSIONINFOA *) &ver))) @@ -523,6 +525,13 @@ static void print_version (void) ver.dwMajorVersion, ver.dwMinorVersion, ver.dwBuildNumber, ver.dwPlatformId, ver.szCSDVersion);
+ if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows NT\CurrentVersion", &hkey )) + { + if (!RegQueryValueExA( hkey, "UBR", NULL, NULL, (BYTE *)&revision, &size )) + xprintf( " UBR=%lu\n", revision ); + RegCloseKey( hkey ); + } + wine_get_build_id = (void *)GetProcAddress(hntdll, "wine_get_build_id"); wine_get_host_version = (void *)GetProcAddress(hntdll, "wine_get_host_version"); if (wine_get_build_id) xprintf( " WineBuild=%s\n", wine_get_build_id() );