- Add Dmitry Gorbachev's hack for bug 3626 problem (cmd shell initially comes up in permanent loop printing squares). Until a better solution is implemented...

See issue #3626 for more details.

svn path=/trunk/; revision=38509
This commit is contained in:
Aleksey Bragin 2009-01-02 17:38:01 +00:00
parent 33e098eaaa
commit 226c5fb558

View file

@ -284,6 +284,19 @@ IntGetCodePageEntry(UINT CodePage)
PAGE_READONLY, PAGE_READONLY,
SEC_FILE, SEC_FILE,
FileHandle); FileHandle);
/* HACK: Check if another process was faster
* and already created this section. See bug 3626 for details */
if (Status == STATUS_OBJECT_NAME_COLLISION)
{
/* Close the file then */
NtClose(FileHandle);
/* And open the section */
Status = NtOpenSection(&SectionHandle,
SECTION_MAP_READ,
&ObjectAttributes);
}
} }
} }
RtlFreeUnicodeString(&UnicodeName); RtlFreeUnicodeString(&UnicodeName);