[PATCH] ntdll: Add semi stub for TokenElevationType in NtQueryInformationToken

Detlef Riekenberg wine.dev at web.de
Sun Nov 14 12:04:55 CST 2010


---
 dlls/ntdll/nt.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index 13beb74..ba4202f 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -269,7 +269,7 @@ NTSTATUS WINAPI NtQueryInformationToken(
         0,    /* TokenSandBoxInert */
         0,    /* TokenAuditPolicy */
         0,    /* TokenOrigin */
-        0,    /* TokenElevationType */
+        sizeof(TOKEN_ELEVATION_TYPE), /* TokenElevationType */
         0,    /* TokenLinkedToken */
         sizeof(TOKEN_ELEVATION), /* TokenElevation */
         0,    /* TokenHasRestrictions */
@@ -507,6 +507,13 @@ NTSTATUS WINAPI NtQueryInformationToken(
         }
         SERVER_END_REQ;
         break;
+    case TokenElevationType:
+        {
+            TOKEN_ELEVATION_TYPE *elevation_type = tokeninfo;
+            FIXME("QueryInformationToken( ..., TokenElevationType, ...) semi-stub\n");
+            *elevation_type = TokenElevationTypeFull;
+        }
+        break;
     case TokenElevation:
         {
             TOKEN_ELEVATION *elevation = tokeninfo;
-- 
1.7.1




More information about the wine-patches mailing list