Skip to contentSkip to conversation

qga-win: Add support of Windows Server 2025 in get-osinfo command

PATCH Superseded Dehan Meng 2 participants 3 messages Feb 21, 2024 – Feb 22, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Dehan Meng

author
#0 lore raw

PATCH 1/1 qga-win: Add support of Windows Server 2025 in get-osinfo command

Add support of Windows Server 2025 in get-osinfo command

---
 qga/commands-win32.c | 1 +
 1 file changed, 1 insertion(+)
qga/commands-win32.c +1 -0
index 697c65507c..f3c7e604c9 100644
@@ -2154,6 +2154,7 @@ static ga_win_10_0_t const WIN_10_0_SERVER_VERSION_MATRIX[4] = {
     {14393, "Microsoft Windows Server 2016",    "2016"},
     {17763, "Microsoft Windows Server 2019",    "2019"},
     {20344, "Microsoft Windows Server 2022",    "2022"},
+    {26040, "MIcrosoft Windows Server 2025",    "2025"},
     {0, 0}
 };
 
Signature · 1 line
2.35.1
#1 lore raw
Quoted 12 lines · Dehan Meng

Add support of Windows Server 2025 in get-osinfo command

---
 qga/commands-win32.c | 1 +
 1 file changed, 1 insertion(+)
qga/commands-win32.c +0 -0
index 697c65507c..f3c7e604c9 100644

qga/commands-win32.c static ga_win_10_0_t const · line 2155

Quoted 2 lines
qga/commands-win32.c +0 -0
@@ -2154,6 +2154,7 @@ static ga_win_10_0_t const
 WIN_10_0_SERVER_VERSION_MATRIX[4] = {
 

You don't update the array size, there are out of range elements

Quoted 11 lines
qga/commands-win32.c +1 -0
     {14393, "Microsoft Windows Server 2016",    "2016"},
     {17763, "Microsoft Windows Server 2019",    "2019"},
     {20344, "Microsoft Windows Server 2022",    "2022"},
+    {26040, "MIcrosoft Windows Server 2025",    "2025"},
     {0, 0}

};

--
2.35.1

author
#2 lore raw

Done. thanks.

Quoted 33 lines · Konstantin Kostiuk
Quoted 12 lines · Dehan Meng

Add support of Windows Server 2025 in get-osinfo command

---
 qga/commands-win32.c | 1 +
 1 file changed, 1 insertion(+)
qga/commands-win32.c +0 -0
index 697c65507c..f3c7e604c9 100644

qga/commands-win32.c static ga_win_10_0_t const · line 2155

Quoted 2 lines
qga/commands-win32.c +0 -0
@@ -2154,6 +2154,7 @@ static ga_win_10_0_t const
 WIN_10_0_SERVER_VERSION_MATRIX[4] = {
 

You don't update the array size, there are out of range elements

Quoted 11 lines
qga/commands-win32.c +1 -0
     {14393, "Microsoft Windows Server 2016",    "2016"},
     {17763, "Microsoft Windows Server 2019",    "2019"},
     {20344, "Microsoft Windows Server 2022",    "2022"},
+    {26040, "MIcrosoft Windows Server 2025",    "2025"},
     {0, 0}

};

--
2.35.1