]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Remove bogus ASSERTion
authorPaul Durrant <pdurrant@amazon.com>
Fri, 29 Jan 2021 18:35:32 +0000 (18:35 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Mon, 8 Feb 2021 15:23:54 +0000 (15:23 +0000)
The ASSERT(Index > 0) in DriverQueryId() in XENFILT appears to have started
to fail in Windows 10 2004. It is bogus as it will fail if an underlying
driver passes back an empty buffer from either BusQueryHardwareIDs or
BusQueryCompatibleIDs, yet DriverQueryId() will cope perfectly will in these
circimstances, passing back en empty string to its caller. This patch simply
removes the ASSERT().

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
src/xenfilt/driver.c

index 8f14ec8900170634c795aa52f4e66cd93e769b0a..5496a17670d7a0dc198a9ad0f0274a1988033ea2 100644 (file)
@@ -579,7 +579,6 @@ DriverQueryId(
 
             Index += Length + 1;
         }
-        ASSERT(Index > 0);
 
         Size = (Index + 1) * sizeof (CHAR);