Fix WIndows elevation
authorMark Young <marky@lunarg.com>
Thu, 17 Feb 2022 20:53:04 +0000 (13:53 -0700)
committerMark Young <marky@lunarg.com>
Fri, 4 Mar 2022 22:38:46 +0000 (15:38 -0700)
tests/framework/shim/shim.h

index ff22c933b1c15f3eb9db253a62e77a38f8c9163e..37a1f183203b8d93a9668ed13c4b44ecc4e4181f 100644 (file)
@@ -132,7 +132,9 @@ struct PlatformShim {
 // platform specific shim interface
 #if defined(WIN32)
     // Control Platform Elevation Level
-    void set_elevated_privilege(bool elev) { (elev) ? SECURITY_MANDATORY_HIGH_RID : SECURITY_MANDATORY_LOW_RID; }
+    void set_elevated_privilege(bool elev) {
+        (elev) ? elevation_level = SECURITY_MANDATORY_HIGH_RID : elevation_level = SECURITY_MANDATORY_LOW_RID;
+    }
     unsigned long elevation_level = SECURITY_MANDATORY_LOW_RID;
 
     void add_dxgi_adapter(fs::path const& manifest_path, GpuType gpu_preference, uint32_t known_driver_index,