libimcv: Be a little more verbose about the Windows system reported
This commit is contained in:
@@ -133,14 +133,16 @@ static bool extract_platform_info(os_type_t *type, chunk_t *name,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
*type = OS_TYPE_WINDOWS;
|
*type = OS_TYPE_WINDOWS;
|
||||||
if (osvie.wProductType == VER_NT_WORKSTATION)
|
snprintf(buf, sizeof(buf), "Windows %s %s",
|
||||||
{
|
osvie.wProductType == VER_NT_WORKSTATION ? "Client" : "Server",
|
||||||
*name = chunk_clone(chunk_from_str("Client"));
|
#ifdef WIN64
|
||||||
}
|
"x86_64"
|
||||||
else
|
#else
|
||||||
{
|
"x86"
|
||||||
*name = chunk_clone(chunk_from_str("Server"));
|
#endif
|
||||||
}
|
);
|
||||||
|
*name = chunk_clone(chunk_from_str(buf));
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "%d.%d.%d (SP %d.%d)",
|
snprintf(buf, sizeof(buf), "%d.%d.%d (SP %d.%d)",
|
||||||
osvie.dwMajorVersion, osvie.dwMinorVersion, osvie.dwBuildNumber,
|
osvie.dwMajorVersion, osvie.dwMinorVersion, osvie.dwBuildNumber,
|
||||||
osvie.wServicePackMajor, osvie.wServicePackMinor);
|
osvie.wServicePackMajor, osvie.wServicePackMinor);
|
||||||
|
|||||||
Reference in New Issue
Block a user