From e762e48d6fbab7bd5137c369fa49df25ccd5369d Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Wed, 7 Nov 2018 08:41:20 -0800 Subject: Warnings clean because fml --- Source/Memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Memory.cpp') diff --git a/Source/Memory.cpp b/Source/Memory.cpp index 168b4e2..0afeded 100644 --- a/Source/Memory.cpp +++ b/Source/Memory.cpp @@ -25,7 +25,7 @@ Memory::Memory(const std::string& processName) { // Next, get the process base address DWORD numModules; std::vector moduleList(1024); - EnumProcessModulesEx(_handle, &moduleList[0], moduleList.size(), &numModules, 3); + EnumProcessModulesEx(_handle, &moduleList[0], static_cast(moduleList.size()), &numModules, 3); std::string name(64, 0); for (DWORD i = 0; i < numModules / sizeof(HMODULE); i++) { @@ -49,7 +49,7 @@ Memory::~Memory() { void Memory::ThrowError() { std::string message(256, '\0'); - FormatMessageA(4096, nullptr, GetLastError(), 1024, &message[0], message.length(), nullptr); + FormatMessageA(4096, nullptr, GetLastError(), 1024, &message[0], static_cast(message.length()), nullptr); std::cout << message.c_str() << std::endl; exit(EXIT_FAILURE); } -- cgit 1.4.1