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)))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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