1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Windows MBR bootloader: remove unused test function in release build

This commit is contained in:
Mounir IDRASSI
2017-07-19 01:08:24 +02:00
parent 3bdb9a32d7
commit d78a3d0273
2 changed files with 5 additions and 0 deletions

View File

@@ -137,6 +137,8 @@ bool operator<= (const uint64 &a, const uint64 &b)
return a < b || a == b;
}
#ifdef TC_BOOT_DEBUG_ENABLED
bool TestInt64 ()
{
uint64 a, b, c;
@@ -161,6 +163,7 @@ bool TestInt64 ()
return c.HighPart == 0x22446755UL && c.LowPart == 0x78024600UL;
}
#endif
void CopyMemory (void *source, uint16 destSegment, uint16 destOffset, uint16 blockSize)
{

View File

@@ -110,7 +110,9 @@ void CopyMemory (uint16 sourceSegment, uint16 sourceOffset, void *destination, u
extern "C" void EraseMemory (void *memory, int size);
uint32 GetLinearAddress (uint16 segment, uint16 offset);
bool RegionsIntersect (const uint64 &start1, uint32 length1, const uint64 &start2, const uint64 &end2);
#ifdef TC_BOOT_DEBUG_ENABLED
bool TestInt64 ();
#endif
extern "C" void ThrowFatalException (int line);
#endif // TC_HEADER_Boot_Platform