[PATCH] cmd: Add compatibility manifest to fix displayed Windows version.

Brendan Shanks bshanks at codeweavers.com
Tue Apr 14 13:38:14 CDT 2020


Signed-off-by: Brendan Shanks <bshanks at codeweavers.com>
---
 programs/cmd/cmd.manifest | 17 +++++++++++++++++
 programs/cmd/cmd.rc       |  3 +++
 2 files changed, 20 insertions(+)
 create mode 100644 programs/cmd/cmd.manifest

diff --git a/programs/cmd/cmd.manifest b/programs/cmd/cmd.manifest
new file mode 100644
index 0000000000..f7188313aa
--- /dev/null
+++ b/programs/cmd/cmd.manifest
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
+    <application>
+        <!-- Windows 10 -->
+        <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
+        <!-- Windows 8.1 -->
+        <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
+        <!-- Windows 8 -->
+        <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
+        <!-- Windows 7 -->
+        <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
+        <!-- Windows Vista -->
+        <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
+    </application>
+</compatibility>
+</assembly>
diff --git a/programs/cmd/cmd.rc b/programs/cmd/cmd.rc
index fa604a6db5..6a173daff3 100644
--- a/programs/cmd/cmd.rc
+++ b/programs/cmd/cmd.rc
@@ -407,3 +407,6 @@ Enter HELP <command> for further information on any of the above commands.\n"
   WCMD_BADPAREN, "Mismatch in parentheses.\n"
   WCMD_BADHEXOCT, "Badly formed number - must be one of decimal (12),\n hexadecimal (0x34) or octal (056).\n"
 }
+
+/* @makedep: cmd.manifest */
+1 RT_MANIFEST cmd.manifest
-- 
2.24.1




More information about the wine-devel mailing list