changeset 264:daad3431b930

Merged
author Sascha Wilde <wilde@intevation.de>
date Tue, 01 Apr 2014 17:39:11 +0200
parents 1fa607af6332 (current diff) 759a898990d1 (diff)
children ffd47b045d19 a7c6a21aba38
files
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/cinst/windowsstore.c	Tue Apr 01 17:38:27 2014 +0200
+++ b/cinst/windowsstore.c	Tue Apr 01 17:39:11 2014 +0200
@@ -165,12 +165,12 @@
     bool ret = false;
     if (OpenProcessToken (GetCurrentProcess(), TOKEN_QUERY, &hToken))
       {
-        TOKEN_ELEVATION elevation;
-        DWORD cbSize = sizeof (TOKEN_ELEVATION);
+        DWORD elevation;
+        DWORD cbSize = sizeof (DWORD);
         if (GetTokenInformation (hToken, TokenElevation, &elevation,
                                  sizeof (TokenElevation), &cbSize))
           {
-            ret = elevation.TokenIsElevated;
+            ret = elevation;
           }
       }
     if (hToken)

http://wald.intevation.org/projects/trustbridge/