mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
- 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:
parent
33e098eaaa
commit
226c5fb558
1 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue