mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 12:14:32 +00:00
[NVNET] Remove NdisEqualMemory hack by linking with memcmp library
Fix suggested by Hermès Bélusca-Maïto. CORE-15872
This commit is contained in:
parent
59d8a77df6
commit
0af84ce12d
2 changed files with 1 additions and 24 deletions
|
@ -18,6 +18,7 @@ list(APPEND SOURCE
|
|||
send.c)
|
||||
|
||||
add_library(nvnet MODULE ${SOURCE} nvnet.rc)
|
||||
target_link_libraries(nvnet memcmp)
|
||||
add_pch(nvnet nvnet.h SOURCE)
|
||||
set_module_type(nvnet kernelmodedriver)
|
||||
add_importlibs(nvnet ndis ntoskrnl hal)
|
||||
|
|
|
@ -692,30 +692,6 @@ NvNetAddWakeUpPattern(
|
|||
return NDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static
|
||||
BOOLEAN
|
||||
NvEqualMemory(
|
||||
_In_reads_bytes_(Length) PVOID Destination,
|
||||
_In_reads_bytes_(Length) PVOID Source,
|
||||
_In_ ULONG Length)
|
||||
{
|
||||
ULONG i;
|
||||
PUCHAR Src, Dest;
|
||||
|
||||
Src = Source;
|
||||
Dest = Destination;
|
||||
for (i = 0; i < Length; ++i)
|
||||
{
|
||||
if (Src[i] != Dest[i])
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
/* 'memcmp' is unavailable for some reason */
|
||||
#undef NdisEqualMemory
|
||||
#define NdisEqualMemory NvEqualMemory
|
||||
|
||||
static
|
||||
NDIS_STATUS
|
||||
NvNetRemoveWakeUpPattern(
|
||||
|
|
Loading…
Reference in a new issue