summaryrefslogtreecommitdiff
path: root/pofx/WDF/Driver/MultiComp/lib/init.c
diff options
context:
space:
mode:
authorDave Wilson <[email protected]>2015-04-29 09:48:49 -0700
committerDave Wilson <[email protected]>2015-04-29 10:47:29 -0700
commitd40232638faaab19de557e70a3ee938da7a35295 (patch)
tree14e61c973745949af186b7940e3a53d25322f5de /pofx/WDF/Driver/MultiComp/lib/init.c
parent02e5b090a6131a7cc1b90f4a9373117c9e3c7088 (diff)
samples update for //build
Diffstat (limited to 'pofx/WDF/Driver/MultiComp/lib/init.c')
-rw-r--r--pofx/WDF/Driver/MultiComp/lib/init.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/pofx/WDF/Driver/MultiComp/lib/init.c b/pofx/WDF/Driver/MultiComp/lib/init.c
index 780434b5..57ad7744 100644
--- a/pofx/WDF/Driver/MultiComp/lib/init.c
+++ b/pofx/WDF/Driver/MultiComp/lib/init.c
@@ -385,7 +385,12 @@ Return value:
WDF_OBJECT_ATTRIBUTES_INIT(&objectAttributes);
objectAttributes.ParentObject = Initializer; // auto-delete when parent
// deleted
- #pragma prefast(suppress:28160, "memorySize > 0")
+
+
+ //
+ // Suppress the warning that memorySize must be greater than zero
+ //
+ #pragma warning(suppress:28160)
status = WdfMemoryCreate(&objectAttributes,
NonPagedPool,
0, // PoolTag
@@ -424,7 +429,11 @@ Return value:
status);
goto exit;
}
- #pragma prefast(suppress:28160, "minorFunctionsSize > 0")
+
+ //
+ // Suppress the warning that minorFunctionsSize must be greater than zero
+ //
+ #pragma warning(suppress:28160)
status = WdfMemoryCopyFromBuffer(memory,
minorFunctionsOffset,
memoryBuffer->MinorFunctions,