Commit 9afecb09 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

SystemTools: fix typo in junction functions

parent 560d2dc4
...@@ -2627,7 +2627,7 @@ static bool IsJunction(const std::wstring& source) ...@@ -2627,7 +2627,7 @@ static bool IsJunction(const std::wstring& source)
return false; return false;
} }
// Adjust privileges so that we can succefully open junction points. // Adjust privileges so that we can successfully open junction points.
HANDLE token; HANDLE token;
TOKEN_PRIVILEGES privs; TOKEN_PRIVILEGES privs;
OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &token); OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &token);
...@@ -2666,7 +2666,7 @@ static bool IsJunction(const std::wstring& source) ...@@ -2666,7 +2666,7 @@ static bool IsJunction(const std::wstring& source)
static bool DeleteJunction(const std::wstring& source) static bool DeleteJunction(const std::wstring& source)
{ {
# ifdef FSCTL_DELETE_REPARSE_POINT # ifdef FSCTL_DELETE_REPARSE_POINT
// Adjust privileges so that we can succefully open junction points as // Adjust privileges so that we can successfully open junction points as
// read/write. // read/write.
HANDLE token; HANDLE token;
TOKEN_PRIVILEGES privs; TOKEN_PRIVILEGES privs;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment