- Open the BaseNamedObjects directory case insensitive.
- Interpret INVALID_HANDLE_VALUE for the console handle as NULL.
Modified: trunk/reactos/lib/kernel32/misc/dllmain.c
_____
Modified: trunk/reactos/lib/kernel32/misc/dllmain.c
--- trunk/reactos/lib/kernel32/misc/dllmain.c 2005-08-11 19:37:29 UTC
(rev 17295)
+++ trunk/reactos/lib/kernel32/misc/dllmain.c 2005-08-11 19:44:36 UTC
(rev 17296)
@@ -60,7 +60,7 @@
InitializeObjectAttributes(&ObjectAttributes,
&Name,
- OBJ_PERMANENT,
+ OBJ_CASE_INSENSITIVE|OBJ_PERMANENT,
NULL,
NULL);
@@ -133,12 +133,16 @@
}
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;