Author: tkreuzer
Date: Tue Apr 28 21:25:21 2015
New Revision: 67466
URL:
http://svn.reactos.org/svn/reactos?rev=67466&view=rev
Log:
[NTOSKRNL]
Fix MSVC warnings.
Modified:
trunk/reactos/ntoskrnl/config/cmsysini.c
trunk/reactos/ntoskrnl/io/iomgr/file.c
trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c
trunk/reactos/ntoskrnl/lpc/reply.c
trunk/reactos/ntoskrnl/mm/ARM3/section.c
Modified: trunk/reactos/ntoskrnl/config/cmsysini.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmsysini.c…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmsysini.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/cmsysini.c [iso-8859-1] Tue Apr 28 21:25:21 2015
@@ -87,7 +87,7 @@
0,
REG_LINK,
TargetKeyName,
- wcslen(TargetKeyName) * sizeof(WCHAR));
+ (ULONG)wcslen(TargetKeyName) * sizeof(WCHAR));
/* Close the link key handle */
ObCloseHandle(TargetKeyHandle, KernelMode);
Modified: trunk/reactos/ntoskrnl/io/iomgr/file.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/file.c?r…
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/file.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/file.c [iso-8859-1] Tue Apr 28 21:25:21 2015
@@ -203,7 +203,7 @@
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;
}
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/plugpla…
==============================================================================
--- trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c [iso-8859-1] Tue Apr 28 21:25:21 2015
@@ -219,7 +219,7 @@
PDEVICE_OBJECT DeviceObject = NULL;
GUID FilterGuid;
PZZWSTR SymbolicLinkList = NULL, LinkList;
- ULONG TotalLength;
+ SIZE_T TotalLength;
_SEH2_TRY
{
Modified: trunk/reactos/ntoskrnl/lpc/reply.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/lpc/reply.c?rev=6…
==============================================================================
--- trunk/reactos/ntoskrnl/lpc/reply.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/lpc/reply.c [iso-8859-1] Tue Apr 28 21:25:21 2015
@@ -762,7 +762,7 @@
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;
Modified: trunk/reactos/ntoskrnl/mm/ARM3/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/section.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/section.c [iso-8859-1] Tue Apr 28 21:25:21 2015
@@ -972,7 +972,15 @@
/* 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 @@
ASSERT(SystemMapPde->u.Hard.Valid == 1);
MI_WRITE_VALID_PDE(PointerPde, *SystemMapPde);
#else
+ DBG_UNREFERENCED_LOCAL_VARIABLE(SystemMapPde);
ASSERT(FALSE);
#endif
}