sys: fixes for Win7 x86

This commit is contained in:
Bill Zissimopoulos committed 2016-07-28 00:03:53 -07:00
1 parent 913f7ac9cd
commit 5827b1fa9c
2 files changed
+17 -1

No files matched your search

+13 -1
View File
@@ -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