jdk/src/windows/classes/sun/nio/fs/WindowsSecurity.java
changeset 23887 7b2fb8d5f6be
parent 23010 6dadb192ad81
--- a/jdk/src/windows/classes/sun/nio/fs/WindowsSecurity.java	Tue Apr 15 11:24:42 2014 +0100
+++ b/jdk/src/windows/classes/sun/nio/fs/WindowsSecurity.java	Tue Apr 15 17:04:40 2014 +0100
@@ -129,11 +129,11 @@
         int genericRead, int genericWrite, int genericExecute, int genericAll)
         throws WindowsException
     {
-        int privilegies = TOKEN_QUERY;
-        long hToken = OpenThreadToken(GetCurrentThread(), privilegies, false);
+        int privileges = TOKEN_QUERY;
+        long hToken = OpenThreadToken(GetCurrentThread(), privileges, false);
         if (hToken == 0L && processTokenWithDuplicateAccess != 0L)
             hToken = DuplicateTokenEx(processTokenWithDuplicateAccess,
-                privilegies);
+                privileges);
 
         boolean hasRight = false;
         if (hToken != 0L) {