[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH] Fix VS2013 SDV failures



Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 src/xennet/adapter.c | 5 +++++
 src/xennet/driver.c  | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/src/xennet/adapter.c b/src/xennet/adapter.c
index b094519..82fcbd1 100644
--- a/src/xennet/adapter.c
+++ b/src/xennet/adapter.c
@@ -1708,6 +1708,9 @@ fail1:
     return status;
 }
 
+#pragma prefast(push)
+#pragma prefast(disable:6102)
+
 #define READ_PROPERTY(field, name, defaultval, handle)  \
     do {                                                \
         NDIS_STATUS                     _Status;        \
@@ -1763,6 +1766,8 @@ fail1:
 
 #undef READ_PROPERTY
 
+#pragma prefast(pop)
+
 static NDIS_STATUS
 AdapterSetRegistrationAttributes(
     IN  PXENNET_ADAPTER Adapter
diff --git a/src/xennet/driver.c b/src/xennet/driver.c
index f0ba962..c6a4896 100644
--- a/src/xennet/driver.c
+++ b/src/xennet/driver.c
@@ -486,6 +486,7 @@ DriverEntry (
                           ConfigurationHandle,
                           &ParameterName,
                           NdisParameterInteger);
+#pragma prefast(suppress:6102)
     if (ndisStatus == NDIS_STATUS_SUCCESS &&
         ParameterValue->ParameterType == NdisParameterInteger)
         FailCreateClose = ParameterValue->ParameterData.IntegerData;
@@ -499,6 +500,7 @@ DriverEntry (
                           ConfigurationHandle,
                           &ParameterName,
                           NdisParameterInteger);
+#pragma prefast(suppress:6102)
     if (ndisStatus == NDIS_STATUS_SUCCESS &&
         ParameterValue->ParameterType == NdisParameterInteger)
         FailDeviceControl = ParameterValue->ParameterData.IntegerData;
-- 
2.1.1


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.