summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorWei Mao <[email protected]>2017-03-20 18:09:29 -0700
committerWei Mao <[email protected]>2017-03-20 18:09:29 -0700
commit88541f70c4273ecd30c8c7c72135bc038a00fd88 (patch)
tree922a00c16f87d7d8afc912db441a61397207e3ab /storage
parent70448f6d9a23626b0ea4e60d3c346328d5213236 (diff)
Fix build failures
Diffstat (limited to 'storage')
-rw-r--r--storage/class/classpnp/src/xferpkt.c10
-rw-r--r--storage/filters/addfilter/src/addfilter.c6
2 files changed, 8 insertions, 8 deletions
diff --git a/storage/class/classpnp/src/xferpkt.c b/storage/class/classpnp/src/xferpkt.c
index e66918b0..29019140 100644
--- a/storage/class/classpnp/src/xferpkt.c
+++ b/storage/class/classpnp/src/xferpkt.c
@@ -155,10 +155,10 @@ NTSTATUS InitializeTransferPackets(PDEVICE_OBJECT Fdo)
} else {
// this is Server SKU
- // Note: the addition max here to make sure we set the min to be at least
- // MIN_WORKINGSET_TRANSFER_PACKETS_Server_LowerBound no matter what maxOutstandingIOPerLUN
- // reported. We shouldn't set this value to be smaller than client system.
- // In other words, the minWorkingSetTransferPackets for server will always between
+ // Note: the addition max here to make sure we set the min to be at least
+ // MIN_WORKINGSET_TRANSFER_PACKETS_Server_LowerBound no matter what maxOutstandingIOPerLUN
+ // reported. We shouldn't set this value to be smaller than client system.
+ // In other words, the minWorkingSetTransferPackets for server will always between
// MIN_WORKINGSET_TRANSFER_PACKETS_Server_LowerBound and MIN_WORKINGSET_TRANSFER_PACKETS_Server_UpperBound
minWorkingSetTransferPackets =
@@ -1578,7 +1578,7 @@ CleanupTransferPacketToWorkingSetSizeWorker(
_In_ PIO_WORKITEM IoWorkItem
)
{
- ULONG node = (ULONG) Context;
+ ULONG node = (ULONG) (ULONG_PTR)Context;
PAGED_CODE();
diff --git a/storage/filters/addfilter/src/addfilter.c b/storage/filters/addfilter/src/addfilter.c
index 5e33a660..5c319bf7 100644
--- a/storage/filters/addfilter/src/addfilter.c
+++ b/storage/filters/addfilter/src/addfilter.c
@@ -193,10 +193,10 @@ int __cdecl _tmain(int argc, _In_reads_(argc) LPTSTR argv[])
PrintUsage();
return (0);
}
-
+
for (argIndex = 1; argIndex < argc; argIndex++) {
-#pragma prefast(suppress:6385, "Previously checked argIndex being less than argc. No buffer overflow.")
+#pragma prefast(suppress:6385, "Previously checked argIndex being less than argc. No buffer overflow.")
if( _tcscmp(argv[argIndex], _T("/listdevices")) == 0 ) {
listDevices = TRUE;
@@ -601,7 +601,7 @@ PrintFilters(
// get the list of filters
LPTSTR buffer = GetFilters( DeviceInfoSet, DeviceInfoData, UpperFilters );
LPTSTR filterName;
- size_t filterPosition;
+ DWORD filterPosition;
if( buffer == NULL )
{