mirror of https://github.com/x64dbg/TitanEngine
Code formatting
This commit is contained in:
parent
7a114df3d5
commit
ec7a8b9352
|
|
@ -14,7 +14,7 @@ static bool isAtleastVista()
|
|||
return isAtleastVista;
|
||||
RTL_OSVERSIONINFOW versionInfo = {0};
|
||||
versionInfo.dwOSVersionInfoSize = sizeof(RTL_OSVERSIONINFOW);
|
||||
typedef NTSTATUS (WINAPI* tRtlGetVersion)(PRTL_OSVERSIONINFOW);
|
||||
typedef NTSTATUS(WINAPI * tRtlGetVersion)(PRTL_OSVERSIONINFOW);
|
||||
tRtlGetVersion pRtlGetVersion = (tRtlGetVersion)GetProcAddress(GetModuleHandleW(L"ntdll.dll"), "RtlGetVersion");
|
||||
if(!pRtlGetVersion || !NT_SUCCESS(pRtlGetVersion(&versionInfo)))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -502,9 +502,9 @@ __declspec(dllexport) void* TITCALL InitNativeDebugW(wchar_t* szFileName, wchar_
|
|||
NumAttributes = 3;
|
||||
AttributesSize = sizeof(SIZE_T) + NumAttributes * sizeof(PS_ATTRIBUTE);
|
||||
AttributeList = reinterpret_cast<PPS_ATTRIBUTE_LIST>(
|
||||
RtlAllocateHeap(RtlProcessHeap(),
|
||||
HEAP_ZERO_MEMORY, // Not optional
|
||||
AttributesSize));
|
||||
RtlAllocateHeap(RtlProcessHeap(),
|
||||
HEAP_ZERO_MEMORY, // Not optional
|
||||
AttributesSize));
|
||||
AttributeList->TotalLength = AttributesSize;
|
||||
|
||||
// In: NT style absolute image path. This is the only required attribute
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ __declspec(dllexport) bool TITCALL StaticFileUnloadW(wchar_t* szFileName, bool C
|
|||
if(FileHandle != NULL && FileMap != NULL)
|
||||
{
|
||||
// HACK: compatibility with x64dbg
|
||||
if(FileHandle != (HANDLE)-1)
|
||||
if(FileHandle != (HANDLE) - 1)
|
||||
{
|
||||
UnMapFileEx(FileHandle, LoadedSize, FileMap, FileMapVA);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ bool SystemInformation::getSystemInformation()
|
|||
osvi.dwOSVersionInfoSize = sizeof(RTL_OSVERSIONINFOW);
|
||||
SYSTEM_INFO si = {0};
|
||||
def_GetNativeSystemInfo _GetNativeSystemInfo = 0;
|
||||
typedef LONG (WINAPI* tRtlGetVersion)(PRTL_OSVERSIONINFOW);
|
||||
typedef LONG(WINAPI * tRtlGetVersion)(PRTL_OSVERSIONINFOW);
|
||||
tRtlGetVersion pRtlGetVersion = (tRtlGetVersion)GetProcAddress(GetModuleHandleW(L"ntdll.dll"), "RtlGetVersion");
|
||||
if(!pRtlGetVersion)
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue