sys: fixes for Win7 x86

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

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