mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Windows: Support machines without "EFI\Boot" folder for EFI system encryption (e.g. Windows LTSB). Compatibility enhancements for EFI system encryption.
This commit is contained in:
@@ -13643,3 +13643,22 @@ BOOL GetSetupconfigLocation (wchar_t* path, DWORD cchSize)
|
||||
|
||||
return bResult;
|
||||
}
|
||||
|
||||
BOOL BufferHasPattern (const unsigned char* buffer, size_t bufferLen, const void* pattern, size_t patternLen)
|
||||
{
|
||||
BOOL bRet = FALSE;
|
||||
if (patternLen <= bufferLen)
|
||||
{
|
||||
size_t i;
|
||||
for (i = 0; i <= (bufferLen - patternLen); ++i)
|
||||
{
|
||||
if (memcmp (&buffer[i], pattern, patternLen) == 0)
|
||||
{
|
||||
bRet = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return bRet;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user