The last set of fixes was not complete. SDV failed again, later on, in
building xenbus.sys.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
if (Context->InterceptDmaAdapter != 0) {
RTL_OSVERSIONINFOEXW VersionInformation;
+ NTSTATUS status;
- RtlGetVersion((PRTL_OSVERSIONINFOW)&VersionInformation);
+ status = RtlGetVersion((PRTL_OSVERSIONINFOW)&VersionInformation);
+ ASSERT(NT_SUCCESS(status));
if (VersionInformation.dwMajorVersion == 6 &&
VersionInformation.dwMinorVersion == 0) {
)
{
IO_CONNECT_INTERRUPT_PARAMETERS Connect;
+ BOOLEAN Found;
ULONG Cpu;
NTSTATUS status;
(*Interrupt)->Vector = (UCHAR)Connect.FullySpecified.Vector;
#if defined(__i386__)
- (VOID)_BitScanReverse(&Cpu, Connect.FullySpecified.ProcessorEnableMask);
+ Found = _BitScanReverse(&Cpu, Connect.FullySpecified.ProcessorEnableMask);
#elif defined(__x86_64__)
- (VOID)_BitScanReverse64(&Cpu, Connect.FullySpecified.ProcessorEnableMask);
+ Found = _BitScanReverse64(&Cpu, Connect.FullySpecified.ProcessorEnableMask);
#else
#error 'Unrecognised architecture'
#endif
+ ASSERT(Found);
(*Interrupt)->Cpu = Cpu;