summary refs log tree commit diff stats
path: root/WitnessRandomizer/Memory.cpp
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2018-10-25 21:57:21 -0700
committerjbzdarkid <jbzdarkid@gmail.com>2018-10-25 21:57:21 -0700
commit4edd6ab796f26563368e5b8487df1f1f9bb0684c (patch)
tree2a39c9dc3935cfe97898bfa1e0d628802b9deb24 /WitnessRandomizer/Memory.cpp
parenta96cea16828973b92c465fb84de2554779f07101 (diff)
downloadwitness-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.cpp2
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
52void Memory::ThrowError() { 52void 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}