diff options
Diffstat (limited to 'shared/privilege.cpp')
-rw-r--r-- | shared/privilege.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/shared/privilege.cpp b/shared/privilege.cpp index 00eb2855..5cb664e1 100644 --- a/shared/privilege.cpp +++ b/shared/privilege.cpp @@ -1,7 +1,6 @@ #include "privilege.h" -#include <wx/intl.h> #include "system_func.h" -//#include <boost/shared_ptr.hpp> +#include "i18n.h" #include "loki/ScopeGuard.h" using namespace ffs3; @@ -14,7 +13,7 @@ Privileges& Privileges::getInstance() } -bool Privileges::privilegeIsActive(LPCTSTR privilege) //throw FileError() +bool Privileges::privilegeIsActive(LPCTSTR privilege) //throw (FileError) { HANDLE hToken = NULL; if (!::OpenProcessToken(::GetCurrentProcess(), //__in HANDLE ProcessHandle, @@ -58,7 +57,7 @@ bool Privileges::privilegeIsActive(LPCTSTR privilege) //throw FileError() } -void Privileges::setPrivilege(LPCTSTR privilege, bool enable) //throw FileError() +void Privileges::setPrivilege(LPCTSTR privilege, bool enable) //throw (FileError) { HANDLE hToken = NULL; if (!::OpenProcessToken(::GetCurrentProcess(), //__in HANDLE ProcessHandle, |