win32: Only print one OS version

Exit the version-checking loop after the first successful check instead
of trying again.
This commit is contained in:
Benjamin Otte
2025-05-14 10:17:38 +02:00
parent d6beb02518
commit 4cc75b144c

View File

@@ -1508,6 +1508,8 @@ get_windows_version (gboolean with_windows)
}
g_string_append (version, versions[i].spversion);
break;
}
}