setupapi: Add a manifest to indicate the tests don't need elevation.

Vincent Povirk madewokherd at gmail.com
Sun Nov 15 20:30:16 CST 2015


-------------- next part --------------
From 6d2c3ff49c03a5813b16f028219d928cd2133dcf Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Sun, 15 Nov 2015 20:23:28 -0600
Subject: [PATCH] setupapi: Add a manifest to indicate the tests don't need
 elevation.

Windows sees "setup" in the test exe filename and assumes it needs to be
elevated, preventing it from running on limited accounts, unless we
override the defaults with a manifest.

Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
---
 dlls/setupapi/tests/Makefile.in       |  2 ++
 dlls/setupapi/tests/setupapi.manifest | 11 +++++++++++
 dlls/setupapi/tests/setupapi.rc       | 25 +++++++++++++++++++++++++
 3 files changed, 38 insertions(+)
 create mode 100644 dlls/setupapi/tests/setupapi.manifest
 create mode 100644 dlls/setupapi/tests/setupapi.rc

diff --git a/dlls/setupapi/tests/Makefile.in b/dlls/setupapi/tests/Makefile.in
index 30902e7..083e576 100644
--- a/dlls/setupapi/tests/Makefile.in
+++ b/dlls/setupapi/tests/Makefile.in
@@ -10,3 +10,5 @@ C_SRCS = \
 	query.c \
 	setupcab.c \
 	stringtable.c
+
+RC_SRCS = setupapi.rc
diff --git a/dlls/setupapi/tests/setupapi.manifest b/dlls/setupapi/tests/setupapi.manifest
new file mode 100644
index 0000000..d0e3692
--- /dev/null
+++ b/dlls/setupapi/tests/setupapi.manifest
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+    <assemblyIdentity type="win32" name="Wine.SetupapiTest" version="0.0.0.0"/>
+    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
+        <security>
+            <requestedPrivileges>
+                <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
+            </requestedPrivileges>
+        </security>
+    </trustInfo>
+</assembly>
diff --git a/dlls/setupapi/tests/setupapi.rc b/dlls/setupapi/tests/setupapi.rc
new file mode 100644
index 0000000..3af9a20
--- /dev/null
+++ b/dlls/setupapi/tests/setupapi.rc
@@ -0,0 +1,25 @@
+/*
+ * setupapi test resources
+ *
+ * Copyright 2015 Vincent Povirk
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ *
+ */
+
+#include <winuser.rh>
+
+/* @makedep: setupapi.manifest */
+1 RT_MANIFEST setupapi.manifest
-- 
2.1.4



More information about the wine-patches mailing list