mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
- 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user