diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-12-11 23:26:45 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-12-11 23:42:08 +0100 |
commit | b48d437c80f8011548383a2e1ae88649a030c1ae (patch) | |
tree | 8de0d72b96937eb166524d0e28335689359717e4 /src/Driver | |
parent | c44127fe3bbecbd5df38a77efe899b8e98d2b4b3 (diff) | |
download | VeraCrypt-b48d437c80f8011548383a2e1ae88649a030c1ae.tar.gz VeraCrypt-b48d437c80f8011548383a2e1ae88649a030c1ae.zip |
Windows Driver: Fix build error using Windows 10 WDK caused by name conflict for KeSaveExtendedProcessorState/KeRestoreExtendedProcessorState functions
Diffstat (limited to 'src/Driver')
-rw-r--r-- | src/Driver/DriveFilter.c | 4 | ||||
-rw-r--r-- | src/Driver/Ntdriver.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Driver/DriveFilter.c b/src/Driver/DriveFilter.c index f89e6e9a..a12b1ec0 100644 --- a/src/Driver/DriveFilter.c +++ b/src/Driver/DriveFilter.c @@ -362,9 +362,9 @@ static void ComputeBootLoaderFingerprint(PDEVICE_OBJECT LowerDeviceObject, byte* NTSTATUS saveStatus = STATUS_INVALID_PARAMETER; #ifdef _WIN64 XSTATE_SAVE SaveState; if (g_isIntel && HasSAVX()) - saveStatus = KeSaveExtendedProcessorState(XSTATE_MASK_GSSE, &SaveState); + saveStatus = KeSaveExtendedProcessorStateVC(XSTATE_MASK_GSSE, &SaveState); #else KFLOATING_SAVE floatingPointState; if (HasISSE() || (HasSSSE3() && HasMMX())) saveStatus = KeSaveFloatingPointState (&floatingPointState); @@ -404,9 +404,9 @@ static void ComputeBootLoaderFingerprint(PDEVICE_OBJECT LowerDeviceObject, byte* } if (NT_SUCCESS (saveStatus)) #ifdef _WIN64 - KeRestoreExtendedProcessorState(&SaveState); + KeRestoreExtendedProcessorStateVC(&SaveState); #else KeRestoreFloatingPointState (&floatingPointState); #endif } diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c index 957853cd..a05335f2 100644 --- a/src/Driver/Ntdriver.c +++ b/src/Driver/Ntdriver.c @@ -4939,9 +4939,9 @@ BOOL IsOSAtLeast (OSVersionEnum reqMinOS) return ((OsMajorVersion << 16 | OsMinorVersion << 8) >= (major << 16 | minor << 8)); } -NTSTATUS NTAPI KeSaveExtendedProcessorState ( +NTSTATUS NTAPI KeSaveExtendedProcessorStateVC ( __in ULONG64 Mask, PXSTATE_SAVE XStateSave ) { @@ -4954,9 +4954,9 @@ NTSTATUS NTAPI KeSaveExtendedProcessorState ( return STATUS_SUCCESS; } } -VOID NTAPI KeRestoreExtendedProcessorState ( +VOID NTAPI KeRestoreExtendedProcessorStateVC ( PXSTATE_SAVE XStateSave ) { if (KeRestoreExtendedProcessorStatePtr) |