Index: ntoskrnl/inbv/inbv.c =================================================================== --- ntoskrnl/inbv/inbv.c (révision 66473) +++ ntoskrnl/inbv/inbv.c (copie de travail) @@ -31,16 +31,16 @@ static KSPIN_LOCK BootDriverLock; static KIRQL InbvOldIrql; -static INBV_DISPLAY_STATE InbvDisplayState; +static INBV_DISPLAY_STATE InbvDisplayState = INBV_DISPLAY_STATE_DISABLED; BOOLEAN InbvBootDriverInstalled = FALSE; static BOOLEAN InbvDisplayDebugStrings = FALSE; -static INBV_DISPLAY_STRING_FILTER InbvDisplayFilter; -static ULONG ProgressBarLeft, ProgressBarTop; +static INBV_DISPLAY_STRING_FILTER InbvDisplayFilter = NULL; +static ULONG ProgressBarLeft = 0, ProgressBarTop = 0; static BOOLEAN ShowProgressBar = FALSE; static INBV_PROGRESS_STATE InbvProgressState; static BT_PROGRESS_INDICATOR InbvProgressIndicator = {0, 25, 0}; -static INBV_RESET_DISPLAY_PARAMETERS InbvResetDisplayParameters; -static ULONG ResourceCount; +static INBV_RESET_DISPLAY_PARAMETERS InbvResetDisplayParameters = NULL; +static ULONG ResourceCount = 0; static PUCHAR ResourceList[IDB_CLUSTER_SERVER + 1]; // The first entry in the table is the NULL pointer #ifdef INBV_ROTBAR_IMPLEMENTED @@ -214,8 +214,8 @@ InLoadOrderLinks); /* Check for a match */ - if ((RtlEqualUnicodeString(&LdrEntry->BaseDllName, &UpString, TRUE)) || - (RtlEqualUnicodeString(&LdrEntry->BaseDllName, &MpString, TRUE))) + if (RtlEqualUnicodeString(&LdrEntry->BaseDllName, &UpString, TRUE) || + RtlEqualUnicodeString(&LdrEntry->BaseDllName, &MpString, TRUE)) { /* Break out */ break; @@ -226,7 +226,7 @@ if (NextEntry != ListHead) { /* Try to find the resource */ - ResourceInfo.Type = 2; //RT_BITMAP; + ResourceInfo.Type = 2; // RT_BITMAP; ResourceInfo.Name = ResourceId; ResourceInfo.Language = 0; Status = LdrFindResource_U(LdrEntry->DllBase,