diff --git a/RebootInto/RebootInto.vcxproj b/RebootInto/RebootInto.vcxproj
index 5b97a33..1c5638e 100644
--- a/RebootInto/RebootInto.vcxproj
+++ b/RebootInto/RebootInto.vcxproj
@@ -41,14 +41,14 @@
Application
true
v140
- MultiByte
+ Unicode
Application
false
v140
true
- MultiByte
+ Unicode
@@ -89,6 +89,7 @@
Level3
Disabled
true
+ MultiThreadedDebugDLL
Console
@@ -100,7 +101,7 @@
Level3
Disabled
true
- MultiThreadedDebug
+ MultiThreadedDebugDLL
RequireAdministrator
@@ -110,15 +111,18 @@
Level3
- MaxSpeed
+ Full
true
- true
+ false
true
+ Size
+ MultiThreaded
true
true
RequireAdministrator
+ Console
@@ -130,6 +134,7 @@
true
MultiThreaded
Size
+ false
true
diff --git a/RebootInto/main.cpp b/RebootInto/main.cpp
index e47978e..ce968ce 100644
--- a/RebootInto/main.cpp
+++ b/RebootInto/main.cpp
@@ -15,7 +15,7 @@
using namespace nowide;
-#define VERSION "1.0"
+#define VERSION "1.0.1"
#define EFI_GLOBAL_VARIABLE L"{8BE4DF61-93CA-11D2-AA0D-00E098032B8C}"
const std::size_t EFI_LOAD_OPTION_DESCRIPTION_OFFSET = sizeof(std::uint32_t) + sizeof(std::uint16_t);
const std::uint16_t INVALID_OPTION_ID = std::numeric_limits::max();
@@ -75,12 +75,12 @@ DWORD SetPrivileges()
DWORD result;
// Enable environment edit privileges
- result = SetPrivilege(hToken, widen(SE_SYSTEM_ENVIRONMENT_NAME).c_str(), true);
+ result = SetPrivilege(hToken, SE_SYSTEM_ENVIRONMENT_NAME, true);
if (result != ERROR_SUCCESS) {
return result;
}
// Enable shutdown privileges
- result = SetPrivilege(hToken, widen(SE_SHUTDOWN_NAME).c_str(), true);
+ result = SetPrivilege(hToken, SE_SHUTDOWN_NAME, true);
if (result != ERROR_SUCCESS) {
return result;
}