Added build arc to version output and relocated.

This commit is contained in:
dolphin6k 2023-10-28 18:57:04 +09:00
parent 10a0a34b1b
commit 9eb8fcff43
2 changed files with 16 additions and 13 deletions

View file

@ -8,13 +8,13 @@ void win32_print_version(void);
void win32_print_version(void)
{
char *verStr;
unsigned int Version = 0;
unsigned int Version = 0;
unsigned int Build = 0;
Version = GetVersion();
if (Version < 0x80000000)
if (Version < 0x80000000)
Build = (DWORD)(HIWORD(Version));
if (IsWindows10OrGreater()) {
if (Build < 22000){
verStr = strdup("Windows 10");
@ -40,12 +40,12 @@ void win32_print_version(void)
}
printf ("Microsoft %s", verStr);
if (IsWindowsServer()){
printf(" Server");
}
if (Version < 0x80000000){
if (Version < 0x80000000){
printf(" (Build %d)\n", Build);
}
}