mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[NTOSKRNL]
- Initialize an uninitialized variable - MI_GET_NEXT_COLOR() doesn't have an argument - Fix a warning on MSVC svn path=/trunk/; revision=52535
This commit is contained in:
parent
fd6bb26299
commit
f3a297daba
3 changed files with 5 additions and 5 deletions
|
@ -244,7 +244,7 @@ extern const ULONG MmProtectToValue[32];
|
||||||
// Returns the color of a page
|
// Returns the color of a page
|
||||||
//
|
//
|
||||||
#define MI_GET_PAGE_COLOR(x) ((x) & MmSecondaryColorMask)
|
#define MI_GET_PAGE_COLOR(x) ((x) & MmSecondaryColorMask)
|
||||||
#define MI_GET_NEXT_COLOR(x) (MI_GET_PAGE_COLOR(++MmSystemPageColor))
|
#define MI_GET_NEXT_COLOR() (MI_GET_PAGE_COLOR(++MmSystemPageColor))
|
||||||
#define MI_GET_NEXT_PROCESS_COLOR(x) (MI_GET_PAGE_COLOR(++(x)->NextPageColor))
|
#define MI_GET_NEXT_PROCESS_COLOR(x) (MI_GET_PAGE_COLOR(++(x)->NextPageColor))
|
||||||
|
|
||||||
#ifndef _M_AMD64
|
#ifndef _M_AMD64
|
||||||
|
|
|
@ -80,7 +80,7 @@ SCHAR
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
RtlBalance(IN PRTL_BALANCED_LINKS Node)
|
RtlBalance(IN PRTL_BALANCED_LINKS Node)
|
||||||
{
|
{
|
||||||
return Node->u1.Balance;
|
return (SCHAR)Node->u1.Balance;
|
||||||
}
|
}
|
||||||
|
|
||||||
PRTL_BALANCED_LINKS
|
PRTL_BALANCED_LINKS
|
||||||
|
|
|
@ -2086,7 +2086,7 @@ MiWriteProtectSystemImage(IN PVOID ImageBase)
|
||||||
PIMAGE_NT_HEADERS NtHeaders;
|
PIMAGE_NT_HEADERS NtHeaders;
|
||||||
PIMAGE_SECTION_HEADER Section;
|
PIMAGE_SECTION_HEADER Section;
|
||||||
PFN_NUMBER DriverPages;
|
PFN_NUMBER DriverPages;
|
||||||
ULONG CurrentProtection, SectionProtection, CombinedProtection, ProtectionMask;
|
ULONG CurrentProtection, SectionProtection, CombinedProtection = 0, ProtectionMask;
|
||||||
ULONG Sections, Size;
|
ULONG Sections, Size;
|
||||||
ULONG_PTR BaseAddress, CurrentAddress;
|
ULONG_PTR BaseAddress, CurrentAddress;
|
||||||
PMMPTE PointerPte, StartPte, LastPte, CurrentPte, ComboPte = NULL;
|
PMMPTE PointerPte, StartPte, LastPte, CurrentPte, ComboPte = NULL;
|
||||||
|
|
Loading…
Reference in a new issue