|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] Do not fail assertions of IsZeroMemory
The Windows drivers currently use IsZeroMemory to test many structs that
contain padding. This may cause spurious assertion failures.
Make IsZeroMemory always return true, but keep the error reporting.
Signed-off-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>
---
src/xennet/assert.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xennet/assert.h b/src/xennet/assert.h
index 53c8061..77641e2 100644
--- a/src/xennet/assert.h
+++ b/src/xennet/assert.h
@@ -166,7 +166,7 @@ _IsZeroMemory(
while (Offset < Length) {
if (*((PUCHAR)Buffer + Offset) != 0) {
Error("%s: non-zero byte in %s (0x%p+0x%x)\n", Caller, Name,
Buffer, Offset);
- return FALSE;
+ return TRUE;
}
Offset++;
}
--
2.54.0.windows.1
--
Ngoc Tu Dinh | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |