properly initialize some variables.
svn path=/trunk/; revision=3503
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: view.c,v 1.49 2002/09/08 10:23:16 chorns Exp $
+/* $Id: view.c,v 1.50 2002/09/15 10:45:00 guido Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/cc/view.c
PCACHE_SEGMENT current;
ULONG i;
PCACHE_SEGMENT* CacheSegList;
- PCACHE_SEGMENT Previous;
+ PCACHE_SEGMENT Previous = NULL;
Length = ROUND_UP(Length, Bcb->CacheSegmentSize);
PVALUE_CELL ValueCell;
PKEY_OBJECT KeyObject;
PDATA_CELL DataCell;
- ULONG BufferLength;
+ ULONG BufferLength = 0;
PKEY_CELL KeyCell;
NTSTATUS Status;
PUCHAR DataPtr;
PSPLAY_TREE_NODE Node,
PSPLAY_TREE_NODE * ReturnNode)
{
- PSPLAY_TREE_NODE x;
+ PSPLAY_TREE_NODE x = NULL;
LONG Equality;
#ifdef WEIGHT
LONG tweight;
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: catch.c,v 1.24 2002/09/08 10:23:28 chorns Exp $
+/* $Id: catch.c,v 1.25 2002/09/15 10:45:02 guido Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/ke/catch.c
}
else
{
- KD_CONTINUE_TYPE Action;
+ KD_CONTINUE_TYPE Action = 0;
/* PreviousMode == KernelMode */
DWORD EaxValue)
{
PEXCEPTION_REGISTRATION ERHead;
- PEXCEPTION_RECORD pExceptRec;
+ PEXCEPTION_RECORD pExceptRec = NULL;
EXCEPTION_RECORD TempER;
CONTEXT Context;
//PVOID Stack;
: "a" (cr0));
return;
}
- /* FIXME: Do fsetpm */
- HardwareMathSupport = 1;
+ /* fsetpm for i287, ignored by i387 */
+ __asm__(".byte 0xDB, 0xE4\n\t");
+ HardwareMathSupport = 1;
}
{
ULONG Count;
PUCHAR Port;
- PUSHORT BufferS;
- PULONG BufferL;
+ PUSHORT BufferS = NULL;
+ PULONG BufferL = NULL;
ULONG Offset;
Count = 1;
{
ULONG Count;
PUCHAR Port;
- PUSHORT BufferS;
- PULONG BufferL;
+ PUSHORT BufferS = NULL;
+ PULONG BufferL = NULL;
ULONG Offset;
Count = 1;
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: main.c,v 1.137 2002/09/08 10:23:29 chorns Exp $
+/* $Id: main.c,v 1.138 2002/09/15 10:45:02 guido Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/ke/main.c
*/
if (((PUCHAR)_LoaderBlock->CommandLine)[0] == '(')
{
- ULONG DiskNumber, PartNumber;
+ ULONG DiskNumber = 0, PartNumber = 0;
PCH p;
CHAR Temp[256];
PCH options;
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: page.c,v 1.43 2002/09/08 10:23:37 chorns Exp $
+/* $Id: page.c,v 1.44 2002/09/15 10:45:04 guido Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/i386/page.c
ULONG Pte;
PULONG Pde;
PEPROCESS CurrentProcess = PsGetCurrentProcess();
- BOOLEAN WasValid;
+ BOOLEAN WasValid = FALSE;
/*
* If we are setting a page in another process we need to be in its
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: region.c,v 1.3 2002/09/08 10:23:36 chorns Exp $
+/* $Id: region.c,v 1.4 2002/09/15 10:45:03 guido Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/region.c
PVOID InitialBaseAddress;
PMM_REGION NewRegion;
PLIST_ENTRY CurrentEntry;
- PMM_REGION CurrentRegion;
+ PMM_REGION CurrentRegion = NULL;
PVOID CurrentBaseAddress;
ULONG RemainingLength;
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: section.c,v 1.97 2002/09/08 10:23:36 chorns Exp $
+/* $Id: section.c,v 1.98 2002/09/15 10:45:03 guido Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/section.c
BOOLEAN Private;
NTSTATUS Status;
PFILE_OBJECT FileObject;
- PREACTOS_COMMON_FCB_HEADER Fcb;
+ PREACTOS_COMMON_FCB_HEADER Fcb = NULL;
BOOLEAN DirectMapped;
Address = (PVOID)PAGE_ROUND_DOWN(Address);
PSECTION_OBJECT Section;
PMADDRESS_SPACE AddressSpace;
ULONG ViewOffset;
- NTSTATUS Status;
+ NTSTATUS Status = STATUS_SUCCESS;
Section = (PSECTION_OBJECT)SectionObject;
AddressSpace = &Process->AddressSpace;
-/* $Id: message.c,v 1.4 2002/09/08 10:23:42 chorns Exp $
+/* $Id: message.c,v 1.5 2002/09/15 10:45:05 guido Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
PIMAGE_RESOURCE_DATA_ENTRY ResourceDataEntry;
PRTL_MESSAGE_RESOURCE_DATA MessageTable;
NTSTATUS Status;
- ULONG EntryOffset, IdOffset;
+ ULONG EntryOffset, IdOffset = 0;
PRTL_MESSAGE_RESOURCE_ENTRY MessageEntry;
ULONG i;