diff --git a/build/VStudio/winfsp_sys.vcxproj b/build/VStudio/winfsp_sys.vcxproj index 71926b47..a1c10f76 100644 --- a/build/VStudio/winfsp_sys.vcxproj +++ b/build/VStudio/winfsp_sys.vcxproj @@ -34,6 +34,7 @@ Windows10 true + $(DDK_LIB_PATH)\BufferOverflowK.lib WindowsKernelModeDriver10.0 Driver WDM @@ -41,6 +42,7 @@ Windows10 false + $(DDK_LIB_PATH)\BufferOverflowK.lib WindowsKernelModeDriver10.0 Driver WDM @@ -48,6 +50,7 @@ Windows10 true + $(DDK_LIB_PATH)\BufferOverflowK.lib WindowsKernelModeDriver10.0 Driver WDM @@ -55,6 +58,7 @@ Windows10 false + $(DDK_LIB_PATH)\BufferOverflowK.lib WindowsKernelModeDriver10.0 Driver WDM diff --git a/src/sys/driver.h b/src/sys/driver.h index 7b10a5db..7c2b11f2 100644 --- a/src/sys/driver.h +++ b/src/sys/driver.h @@ -1034,7 +1034,11 @@ extern WCHAR FspFileDescDirectoryPatternMatchAll[]; extern FSP_MV_CcCoherencyFlushAndPurgeCache *FspMvCcCoherencyFlushAndPurgeCache; extern ULONG FspMvMdlMappingNoWrite; -/* add missing API prototype */ +/* + * Fixes + */ + + /* ObCloseHandle: add missing prototype */ #if (NTDDI_VERSION < NTDDI_WIN7) NTKERNELAPI NTSTATUS @@ -1044,4 +1048,12 @@ ObCloseHandle( ); #endif +/* RtlEqualMemory: this is defined as memcmp, which does not exist on Win7 x86! */ +#undef RtlEqualMemory +static inline +LOGICAL RtlEqualMemory(const VOID *Source1, const VOID *Source2, SIZE_T Length) +{ + return Length == RtlCompareMemory(Source1, Source2, Length); +} + #endif