Alexandre Julliard : krnl386.exe: Ignore non-resident name table if value is invalid.

Alexandre Julliard julliard at winehq.org
Thu Jul 1 11:19:29 CDT 2010


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Jun 30 21:05:03 2010 +0200

krnl386.exe: Ignore non-resident name table if value is invalid.

Watcom C++ apparently screws this up.

---

 dlls/krnl386.exe16/ne_module.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/krnl386.exe16/ne_module.c b/dlls/krnl386.exe16/ne_module.c
index fe80126..9f777cc 100644
--- a/dlls/krnl386.exe16/ne_module.c
+++ b/dlls/krnl386.exe16/ne_module.c
@@ -728,7 +728,7 @@ static HMODULE16 build_module( const void *mapping, SIZE_T mapping_size, LPCSTR
         if (!NE_READ_DATA( pModule, buffer, ne_header->ne_nrestab, ne_header->ne_cbnrestab ))
         {
             GlobalFree16( pModule->nrname_handle );
-            goto failed;
+            pModule->nrname_handle = 0;
         }
     }
     else pModule->nrname_handle = 0;




More information about the wine-cvs mailing list