Sebastian Lackner : krnl386.exe16: Do not reassign default handles after they got closed.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Apr 18 10:37:02 CDT 2016


Module: wine
Branch: master
Commit: 414c73feabb6d33be969f3927f8b3e8a8075bcd4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=414c73feabb6d33be969f3927f8b3e8a8075bcd4

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Mon Apr 18 11:29:29 2016 +0200

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 at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/krnl386.exe16/file.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/krnl386.exe16/file.c b/dlls/krnl386.exe16/file.c
index b66b753..4e7f7c4 100644
--- a/dlls/krnl386.exe16/file.c
+++ b/dlls/krnl386.exe16/file.c
@@ -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;




More information about the wine-cvs mailing list