Skip to content

Commit

Permalink
fixed typo Virual => Virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepGin committed Jun 9, 2016
1 parent be3805a commit 347c86b
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions src/BlackBone/Process/MemBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ MemBlock MemBlock::Allocate( ProcessMemory& process, size_t size, ptr_t desired
ptr_t desired64 = desired;
DWORD newProt = CastProtection( protection, process.core().DEP() );

if (process.core().native()->VirualAllocExT( desired64, size, MEM_COMMIT, newProt ) != STATUS_SUCCESS)
if (process.core().native()->VirtualAllocExT( desired64, size, MEM_COMMIT, newProt ) != STATUS_SUCCESS)
{
desired64 = 0;
if (process.core().native()->VirualAllocExT( desired64, size, MEM_COMMIT, newProt ) == STATUS_SUCCESS)
if (process.core().native()->VirtualAllocExT( desired64, size, MEM_COMMIT, newProt ) == STATUS_SUCCESS)
LastNtStatus( STATUS_IMAGE_NOT_AT_BASE );
else
desired64 = 0;
Expand All @@ -89,12 +89,12 @@ MemBlock MemBlock::Allocate( ProcessMemory& process, size_t size, ptr_t desired
ptr_t MemBlock::Realloc( size_t size, ptr_t desired /*= 0*/, DWORD protection /*= PAGE_EXECUTE_READWRITE*/ )
{
ptr_t desired64 = desired;
_memory->core().native()->VirualAllocExT( desired64, size, MEM_COMMIT, protection );
_memory->core().native()->VirtualAllocExT( desired64, size, MEM_COMMIT, protection );

if (!desired64)
{
desired64 = 0;
_memory->core( ).native( )->VirualAllocExT( desired64, size, MEM_COMMIT, protection );
_memory->core( ).native( )->VirtualAllocExT( desired64, size, MEM_COMMIT, protection );

if (desired64)
LastNtStatus( STATUS_IMAGE_NOT_AT_BASE );
Expand Down
2 changes: 1 addition & 1 deletion src/BlackBone/Process/ProcessMemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ MemBlock ProcessMemory::Allocate( size_t size, DWORD protection /*= PAGE_EXECUTE
/// <returns>Status</returns>
NTSTATUS ProcessMemory::Free( ptr_t pAddr, size_t size /*= 0*/, DWORD freeType /*= MEM_RELEASE*/ )
{
return _core.native()->VirualFreeExT( pAddr, size, freeType );
return _core.native()->VirtualFreeExT( pAddr, size, freeType );
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/BlackBone/Subsystem/NativeSubsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Native::~Native()
/// <param name="flAllocationType">Allocation type</param>
/// <param name="flProtect">Memory protection</param>
/// <returns>Status code</returns>
NTSTATUS Native::VirualAllocExT( ptr_t& lpAddress, size_t dwSize, DWORD flAllocationType, DWORD flProtect )
NTSTATUS Native::VirtualAllocExT( ptr_t& lpAddress, size_t dwSize, DWORD flAllocationType, DWORD flProtect )
{
LastNtStatus( STATUS_SUCCESS );
lpAddress = reinterpret_cast<ptr_t>
Expand All @@ -94,7 +94,7 @@ NTSTATUS Native::VirualAllocExT( ptr_t& lpAddress, size_t dwSize, DWORD flAlloca
/// <param name="dwSize">Region size</param>
/// <param name="dwFreeType">Memory release type.</param>
/// <returns>Status code</returns>
NTSTATUS Native::VirualFreeExT( ptr_t lpAddress, size_t dwSize, DWORD dwFreeType )
NTSTATUS Native::VirtualFreeExT( ptr_t lpAddress, size_t dwSize, DWORD dwFreeType )
{
LastNtStatus( STATUS_SUCCESS );
VirtualFreeEx( _hProcess, reinterpret_cast<LPVOID>(lpAddress), dwSize, dwFreeType );
Expand Down
4 changes: 2 additions & 2 deletions src/BlackBone/Subsystem/NativeSubsystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Native
/// <param name="flAllocationType">Allocation type</param>
/// <param name="flProtect">Memory protection</param>
/// <returns>Status code</returns>
virtual NTSTATUS VirualAllocExT( ptr_t& lpAddress, size_t dwSize, DWORD flAllocationType, DWORD flProtect );
virtual NTSTATUS VirtualAllocExT( ptr_t& lpAddress, size_t dwSize, DWORD flAllocationType, DWORD flProtect );

/// <summary>
/// Free virtual memory
Expand All @@ -52,7 +52,7 @@ class Native
/// <param name="dwSize">Region size</param>
/// <param name="dwFreeType">Memory release type.</param>
/// <returns>Status code</returns>
virtual NTSTATUS VirualFreeExT( ptr_t lpAddress, size_t dwSize, DWORD dwFreeType );
virtual NTSTATUS VirtualFreeExT( ptr_t lpAddress, size_t dwSize, DWORD dwFreeType );

/// <summary>
/// Change memory protection
Expand Down
4 changes: 2 additions & 2 deletions src/BlackBone/Subsystem/Wow64Subsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ NativeWow64::~NativeWow64()
/// <param name="flAllocationType">Allocation type</param>
/// <param name="flProtect">Memory protection</param>
/// <returns>Status code</returns>
NTSTATUS NativeWow64::VirualAllocExT( ptr_t& lpAddress, size_t dwSize, DWORD flAllocationType, DWORD flProtect )
NTSTATUS NativeWow64::VirtualAllocExT( ptr_t& lpAddress, size_t dwSize, DWORD flAllocationType, DWORD flProtect )
{
DWORD64 size64 = dwSize;
static ptr_t ntavm = _local.GetProcAddress64( _local.getNTDLL64(), "NtAllocateVirtualMemory" );
Expand All @@ -46,7 +46,7 @@ NTSTATUS NativeWow64::VirualAllocExT( ptr_t& lpAddress, size_t dwSize, DWORD flA
/// <param name="dwSize">Region size</param>
/// <param name="dwFreeType">Memory release type.</param>
/// <returns>Status code</returns>
NTSTATUS NativeWow64::VirualFreeExT( ptr_t lpAddress, size_t dwSize, DWORD dwFreeType )
NTSTATUS NativeWow64::VirtualFreeExT( ptr_t lpAddress, size_t dwSize, DWORD dwFreeType )
{
static ptr_t ntfvm = _local.GetProcAddress64( _local.getNTDLL64( ), "NtFreeVirtualMemory" );
if (ntfvm == 0)
Expand Down
4 changes: 2 additions & 2 deletions src/BlackBone/Subsystem/Wow64Subsystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class NativeWow64 : public Native
/// <param name="flAllocationType">Allocation type</param>
/// <param name="flProtect">Memory protection</param>
/// <returns>Status code</returns>
virtual NTSTATUS VirualAllocExT( ptr_t& lpAddress, size_t dwSize, DWORD flAllocationType, DWORD flProtect );
virtual NTSTATUS VirtualAllocExT( ptr_t& lpAddress, size_t dwSize, DWORD flAllocationType, DWORD flProtect );

/// <summary>
/// Free virtual memory
Expand All @@ -29,7 +29,7 @@ class NativeWow64 : public Native
/// <param name="dwSize">Region size</param>
/// <param name="dwFreeType">Memory release type.</param>
/// <returns>Status code</returns>
virtual NTSTATUS VirualFreeExT( ptr_t lpAddress, size_t dwSize, DWORD dwFreeType );
virtual NTSTATUS VirtualFreeExT( ptr_t lpAddress, size_t dwSize, DWORD dwFreeType );

/// <summary>
/// Change memory protection
Expand Down

0 comments on commit 347c86b

Please sign in to comment.