[NTOSKRNL]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 28 Apr 2015 21:25:21 +0000 (21:25 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 28 Apr 2015 21:25:21 +0000 (21:25 +0000)
Fix MSVC warnings.

svn path=/trunk/; revision=67466

reactos/ntoskrnl/config/cmsysini.c
reactos/ntoskrnl/io/iomgr/file.c
reactos/ntoskrnl/io/pnpmgr/plugplay.c
reactos/ntoskrnl/lpc/reply.c
reactos/ntoskrnl/mm/ARM3/section.c

index 77d5392..80d098e 100644 (file)
@@ -87,7 +87,7 @@ CmpLinkKeyToHive(
                            0,
                            REG_LINK,
                            TargetKeyName,
-                           wcslen(TargetKeyName) * sizeof(WCHAR));
+                           (ULONG)wcslen(TargetKeyName) * sizeof(WCHAR));
 
     /* Close the link key handle */
     ObCloseHandle(TargetKeyHandle, KernelMode);
index bcb3fd1..8f515b2 100644 (file)
@@ -203,7 +203,7 @@ IopDoNameTransmogrify(IN PIRP Irp,
         Length = DataBuffer->MountPointReparseBuffer.SubstituteNameLength;
 
         /* Check we don't overflow */
-        if ((MAXUSHORT - DataBuffer->Reserved) <= (Length + sizeof(UNICODE_NULL)))
+        if (((ULONG)MAXUSHORT - DataBuffer->Reserved) <= (Length + sizeof(UNICODE_NULL)))
         {
             Irp->IoStatus.Status = STATUS_IO_REPARSE_DATA_INVALID;
         }
index 25791eb..5f36eb8 100644 (file)
@@ -219,7 +219,7 @@ IopGetInterfaceDeviceList(PPLUGPLAY_CONTROL_INTERFACE_DEVICE_LIST_DATA DeviceLis
     PDEVICE_OBJECT DeviceObject = NULL;
     GUID FilterGuid;
     PZZWSTR SymbolicLinkList = NULL, LinkList;
-    ULONG TotalLength;
+    SIZE_T TotalLength;
 
     _SEH2_TRY
     {
index 1a3a380..e2b31f0 100644 (file)
@@ -762,7 +762,7 @@ LpcpCopyRequestData(
     PORT_MESSAGE CapturedMessage;
     PLPCP_PORT_OBJECT Port = NULL;
     PETHREAD ClientThread = NULL;
-    ULONG LocalReturnlength;
+    SIZE_T LocalReturnlength;
     PLPCP_MESSAGE InfoMessage;
     PLPCP_DATA_INFO DataInfo;
     PVOID DataInfoBaseAddress;
index ea90868..4365545 100644 (file)
@@ -972,7 +972,15 @@ MiSessionCommitPageTables(IN PVOID StartVa,
     /* Loop each PDE while holding the working set lock */
 //  MiLockWorkingSet(PsGetCurrentThread(),
 //                   &MmSessionSpace->GlobalVirtualAddress->Vm);
-#ifndef _M_AMD64
+#ifdef _M_AMD64
+_WARN("MiSessionCommitPageTables halfplemented for amd64")
+    DBG_UNREFERENCED_LOCAL_VARIABLE(OldIrql);
+    DBG_UNREFERENCED_LOCAL_VARIABLE(Color);
+    DBG_UNREFERENCED_LOCAL_VARIABLE(TempPte);
+    DBG_UNREFERENCED_LOCAL_VARIABLE(Pfn1);
+    DBG_UNREFERENCED_LOCAL_VARIABLE(PageFrameNumber);
+    ASSERT(FALSE);
+#else
     while (StartPde <= EndPde)
     {
         /* Check if we already have a page table */
@@ -2170,6 +2178,7 @@ MiRemoveMappedPtes(IN PVOID BaseAddress,
                 ASSERT(SystemMapPde->u.Hard.Valid == 1);
                 MI_WRITE_VALID_PDE(PointerPde, *SystemMapPde);
 #else
+                DBG_UNREFERENCED_LOCAL_VARIABLE(SystemMapPde);
                 ASSERT(FALSE);
 #endif
             }