mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 21:57:18 +00:00
krnl386.exe16: Do not reassign default handles after they got closed.
Based on a patch by Michael Müller. Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
df5388b977
commit
414c73feab
|
@ -113,8 +113,7 @@ HFILE WINAPI Win32HandleToDosFileHandle( HANDLE handle )
|
|||
if (!handle || (handle == INVALID_HANDLE_VALUE))
|
||||
return HFILE_ERROR;
|
||||
|
||||
FILE_InitProcessDosHandles();
|
||||
for (i = 0; i < DOS_TABLE_SIZE; i++)
|
||||
for (i = 5; i < DOS_TABLE_SIZE; i++)
|
||||
if (!dos_handles[i])
|
||||
{
|
||||
dos_handles[i] = handle;
|
||||
|
|
Loading…
Reference in a new issue