diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-05-02 19:59:50 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-05-03 08:25:22 +0200 |
commit | 98ff65045e7b6f6cda3bec644b5da4fd61bdf57a (patch) | |
tree | fb9f05fd240ec7439c512a0553599028283db0bc /src/Common/Dlgcode.c | |
parent | 143d6c1dde328c051200e754248906e145606b8a (diff) | |
download | VeraCrypt-98ff65045e7b6f6cda3bec644b5da4fd61bdf57a.tar.gz VeraCrypt-98ff65045e7b6f6cda3bec644b5da4fd61bdf57a.zip |
Windows: Support machines without "EFI\Boot" folder for EFI system encryption (e.g. Windows LTSB). Compatibility enhancements for EFI system encryption.
Diffstat (limited to 'src/Common/Dlgcode.c')
-rw-r--r-- | src/Common/Dlgcode.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index 00e1558f..7d2fffba 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -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; +} |