- Open the BaseNamedObjects directory case insensitive.

- Interpret INVALID_HANDLE_VALUE for the console handle as NULL.

svn path=/trunk/; revision=17296
This commit is contained in:
Hartmut Birr
2005-08-11 19:44:36 +00:00
parent 52f95df613
commit 8b3fa3e5d1
+7 -3
View File
@@ -60,7 +60,7 @@ OpenBaseDirectory(PHANDLE DirHandle)
InitializeObjectAttributes(&ObjectAttributes,
&Name,
OBJ_PERMANENT,
OBJ_CASE_INSENSITIVE|OBJ_PERMANENT,
NULL,
NULL);
@@ -133,12 +133,16 @@ BasepInitConsole(VOID)
}
else
{
if (Parameters->ConsoleHandle == INVALID_HANDLE_VALUE)
{
Parameters->ConsoleHandle = 0;
}
DPRINT("Using existing console: %x\n", Parameters->ConsoleHandle);
}
/* Initialize Console Ctrl Handler */
RtlInitializeCriticalSection(&ConsoleLock);
SetConsoleCtrlHandler(DefaultConsoleCtrlHandler, TRUE);
RtlInitializeCriticalSection(&ConsoleLock);
SetConsoleCtrlHandler(DefaultConsoleCtrlHandler, TRUE);
/* Now use the proper console handle */
Request.Data.AllocConsoleRequest.Console = Parameters->ConsoleHandle;