[PATCH v2 3/9] msvfw32/tests: Set requestedExecutionLevel to asInvoker to prevent registry virtualization.

Zebediah Figura z.figura12 at gmail.com
Wed Mar 6 21:10:18 CST 2019


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/msvfw32/tests/Makefile.in      |  3 +++
 dlls/msvfw32/tests/msvfw32.manifest | 16 ++++++++++++++++
 dlls/msvfw32/tests/msvfw32.rc       | 22 ++++++++++++++++++++++
 3 files changed, 41 insertions(+)
 create mode 100644 dlls/msvfw32/tests/msvfw32.manifest
 create mode 100644 dlls/msvfw32/tests/msvfw32.rc

diff --git a/dlls/msvfw32/tests/Makefile.in b/dlls/msvfw32/tests/Makefile.in
index 1ae7897cc7..ecb26dbb19 100644
--- a/dlls/msvfw32/tests/Makefile.in
+++ b/dlls/msvfw32/tests/Makefile.in
@@ -4,3 +4,6 @@ IMPORTS   = msvfw32 advapi32 gdi32
 C_SRCS = \
 	drawdib.c \
 	msvfw.c
+
+RC_SRCS = \
+	msvfw32.rc
diff --git a/dlls/msvfw32/tests/msvfw32.manifest b/dlls/msvfw32/tests/msvfw32.manifest
new file mode 100644
index 0000000000..69222c1e1d
--- /dev/null
+++ b/dlls/msvfw32/tests/msvfw32.manifest
@@ -0,0 +1,16 @@
+<?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.msvfw32.Test"
+        version="1.0.0.0"
+        processorArchitecture="*"
+    />
+    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
+        <security>
+            <requestedPrivileges>
+                <requestedExecutionLevel level="asInvoker" />
+            </requestedPrivileges>
+        </security>
+    </trustInfo>
+</assembly>
diff --git a/dlls/msvfw32/tests/msvfw32.rc b/dlls/msvfw32/tests/msvfw32.rc
new file mode 100644
index 0000000000..463e7448ed
--- /dev/null
+++ b/dlls/msvfw32/tests/msvfw32.rc
@@ -0,0 +1,22 @@
+/*
+ * Copyright 2019 Zebediah Figura
+ *
+ * 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.h"
+
+/* @makedep: msvfw32.manifest */
+1 RT_MANIFEST msvfw32.manifest
-- 
2.20.1




More information about the wine-devel mailing list