diff --git a/mozglue/build/Authenticode.cpp b/mozglue/build/Authenticode.cpp index 811035b7773f..ea4fd78a706f 100644 --- a/mozglue/build/Authenticode.cpp +++ b/mozglue/build/Authenticode.cpp @@ -265,7 +265,8 @@ SignedBinary::VerifySignature(const wchar_t* aFilePath) // Now we need to hash the file at aFilePath. // Since we're hashing this file, let's open it with a sequential scan hint. - HANDLE rawFile = ::CreateFileW(aFilePath, GENERIC_READ, FILE_SHARE_READ, + HANDLE rawFile = ::CreateFileW(aFilePath, GENERIC_READ, + FILE_SHARE_READ | FILE_SHARE_DELETE | FILE_SHARE_WRITE, nullptr, OPEN_EXISTING, FILE_FLAG_SEQUENTIAL_SCAN, nullptr); if (rawFile == INVALID_HANDLE_VALUE) {