Report OS version as OS/2 Warp 4.5, not 4.0.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 10 Jul 2018 01:45:05 -0400
changeset 152 975c7b2f35a8
parent 151 de653a557d8c
child 153 4dc11e50df15
Report OS version as OS/2 Warp 4.5, not 4.0. It's the last official release (and even what modern spins, like ArcaOS 5, report).
native/doscalls.c
--- a/native/doscalls.c	Tue Jul 10 01:33:11 2018 -0400
+++ b/native/doscalls.c	Tue Jul 10 01:45:05 2018 -0400
@@ -200,9 +200,9 @@
             case QSV_MAX_SLICE: *(buf++) = 10; break;
             case QSV_PAGE_SIZE: *(buf++) = 4096; break;
             // !!! FIXME: change the version number in some way so apps can know this isn't actually OS/2.
-            case QSV_VERSION_MAJOR: *(buf++) = 20; break;   // OS/2 Warp 4.0
-            case QSV_VERSION_MINOR: *(buf++) = 40; break;   // OS/2 Warp 4.0
-            case QSV_VERSION_REVISION: *(buf++) = 0; break; // OS/2 Warp 4.0
+            case QSV_VERSION_MAJOR: *(buf++) = 20; break;   // OS/2 Warp 4.5
+            case QSV_VERSION_MINOR: *(buf++) = 45; break;   // OS/2 Warp 4.5
+            case QSV_VERSION_REVISION: *(buf++) = 0; break; // OS/2 Warp 4.5
 
             case QSV_MS_COUNT: {
                 static long startoffset = 0;
@@ -3264,9 +3264,8 @@
 {
     TRACE_NATIVE("Dos16GetVersion(%p)", pver);
     uint8 *bytes = (uint8 *) pver;
-    FIXME("better version here?");
-    bytes[0] = 2;
-    bytes[1] = 4;
+    bytes[0] = 45;  // OS/2 Warp 4.52 reports this.
+    bytes[1] = 20;
     return NO_ERROR;
 } // Dos16GetVersion