From 00b271f265450850336c8bcfdacc8671dbc8406a Mon Sep 17 00:00:00 2001 From: boris Date: Tue, 1 Jan 2019 20:53:10 +1300 Subject: yah --- csgo-loader/csgo-client/RemoteCode/RemoteProcess.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'csgo-loader/csgo-client/RemoteCode/RemoteProcess.cpp') diff --git a/csgo-loader/csgo-client/RemoteCode/RemoteProcess.cpp b/csgo-loader/csgo-client/RemoteCode/RemoteProcess.cpp index 571f3cb..abed829 100644 --- a/csgo-loader/csgo-client/RemoteCode/RemoteProcess.cpp +++ b/csgo-loader/csgo-client/RemoteCode/RemoteProcess.cpp @@ -30,7 +30,7 @@ namespace RemoteCode m_Process = OpenProcess(PROCESS_ALL_ACCESS, false, ProcessEntry.th32ProcessID); if(!m_Process) - ERROR_ASSERT("[000G:%08x] There was an error with accessing a process.", GetLastError()); + ERROR_ASSERT(STR("[000G:%08x] There was an error with accessing a process."), GetLastError()); return true; } @@ -47,7 +47,7 @@ namespace RemoteCode NTSTATUS Status = ZwReadVirtualMemory(m_Process, Address, Data, SizeOfData, nullptr); if(NT_ERROR(Status)) - ERROR_ASSERT("[00DF:%08x] There was an error with accessing a process.", Status); + ERROR_ASSERT(STR("[00DF:%08x] There was an error with accessing a process."), Status); } void RemoteProcess::WriteMemoryWrapper_Internal(void *Address, void *Data, size_t SizeOfData) @@ -57,7 +57,7 @@ namespace RemoteCode NTSTATUS Status = ZwWriteVirtualMemory(m_Process, Address, Data, SizeOfData, nullptr); if(NT_ERROR(Status)) - ERROR_ASSERT("[00DF:%08x] There was an error with accessing a process.", Status); + ERROR_ASSERT(STR("[00DF:%08x] There was an error with accessing a process."), Status); } void *RemoteProcess::Allocate(size_t AllocationSize) @@ -76,7 +76,7 @@ namespace RemoteCode ); if(NT_ERROR(Status)) - ERROR_ASSERT("[00DF:%08x] There was an error with accessing a process.", Status); + ERROR_ASSERT(STR("[00DF:%08x] There was an error with accessing a process."), Status); return AllocationAddress; } @@ -98,7 +98,7 @@ namespace RemoteCode if(strstr(ModuleEntry.szModule, ModuleName)) { if(!ModuleEntry.hModule) - ERROR_ASSERT("[00DF:00001C00] An integrity check failed."); + ERROR_ASSERT(STR("[00DF:00001C00] An integrity check failed.")); CloseHandle(Toolhelp); return RemoteModule(ModuleEntry.hModule); -- cgit v1.2.3