diff options
-rw-r--r-- | src/Driver/DriveFilter.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Driver/DriveFilter.c b/src/Driver/DriveFilter.c index c153a1ad..eba7c40c 100644 --- a/src/Driver/DriveFilter.c +++ b/src/Driver/DriveFilter.c @@ -1544,11 +1544,13 @@ static VOID SetupThreadProc (PVOID threadArg) if (bytesWrittenSinceHeaderUpdate >= TC_ENCRYPTION_SETUP_HEADER_UPDATE_THRESHOLD)
{
status = SaveDriveVolumeHeader (Extension);
ASSERT (NT_SUCCESS (status));
-
- headerUpdateRequired = FALSE;
- bytesWrittenSinceHeaderUpdate = 0;
+ if (NT_SUCCESS (status))
+ {
+ headerUpdateRequired = FALSE;
+ bytesWrittenSinceHeaderUpdate = 0;
+ }
}
}
abort:
|