diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-25 21:57:21 -0700 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-25 21:57:21 -0700 |
commit | 4edd6ab796f26563368e5b8487df1f1f9bb0684c (patch) | |
tree | 2a39c9dc3935cfe97898bfa1e0d628802b9deb24 /WitnessRandomizer/Memory.cpp | |
parent | a96cea16828973b92c465fb84de2554779f07101 (diff) | |
download | witness-tutorializer-4edd6ab796f26563368e5b8487df1f1f9bb0684c.tar.gz witness-tutorializer-4edd6ab796f26563368e5b8487df1f1f9bb0684c.tar.bz2 witness-tutorializer-4edd6ab796f26563368e5b8487df1f1f9bb0684c.zip |
Some sequence randomization, and swapping some control panels.
Diffstat (limited to 'WitnessRandomizer/Memory.cpp')
-rw-r--r-- | WitnessRandomizer/Memory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WitnessRandomizer/Memory.cpp b/WitnessRandomizer/Memory.cpp index 304b7b4..8ad5452 100644 --- a/WitnessRandomizer/Memory.cpp +++ b/WitnessRandomizer/Memory.cpp | |||
@@ -51,7 +51,7 @@ Memory::~Memory() { | |||
51 | 51 | ||
52 | void Memory::ThrowError() { | 52 | void Memory::ThrowError() { |
53 | std::string message(256, '\0'); | 53 | std::string message(256, '\0'); |
54 | FormatMessageA(4096, NULL, GetLastError(), 1024, &message[0], message.length(), NULL); | 54 | FormatMessageA(4096, NULL, GetLastError(), 1024, &message[0], static_cast<DWORD>(message.length()), NULL); |
55 | OutputDebugStringA(message.c_str()); | 55 | OutputDebugStringA(message.c_str()); |
56 | exit(EXIT_FAILURE); | 56 | exit(EXIT_FAILURE); |
57 | } | 57 | } |