mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[WIN32SS:NTUSER] Bugcheck in case two mandatory initialization steps are not fulfilled.
- Bugcheck VIDEO_DRIVER_INIT_FAILURE in case initializing video fails. - Bugcheck WIN32K_INIT_OR_RIT_FAILURE (Windows-compatible) in case the USER subsystem version does not match.
This commit is contained in:
parent
1e74ca5075
commit
7bbf8ae688
1 changed files with 8 additions and 4 deletions
|
@ -132,9 +132,13 @@ UserInitialize(VOID)
|
|||
Status = UserCreateWinstaDirectory();
|
||||
if (!NT_SUCCESS(Status)) return Status;
|
||||
|
||||
/* Initialize Video */
|
||||
/* Initialize the Video */
|
||||
Status = InitVideo();
|
||||
if (!NT_SUCCESS(Status)) return Status;
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
/* We failed, bugcheck */
|
||||
KeBugCheckEx(VIDEO_DRIVER_INIT_FAILURE, Status, 0, 0, USER_VERSION);
|
||||
}
|
||||
|
||||
// {
|
||||
// DrvInitConsole.
|
||||
|
@ -185,8 +189,8 @@ NtUserInitialize(
|
|||
/* Check Windows USER subsystem version */
|
||||
if (dwWinVersion != USER_VERSION)
|
||||
{
|
||||
// FIXME: Should bugcheck!
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
/* No match, bugcheck */
|
||||
KeBugCheckEx(WIN32K_INIT_OR_RIT_FAILURE, 0, 0, dwWinVersion, USER_VERSION);
|
||||
}
|
||||
|
||||
/* Acquire exclusive lock */
|
||||
|
|
Loading…
Reference in a new issue