From 2286267aad01b2ecd4e47895abf3678292e310e8 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 30 Jun 2010 21:05:03 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/krnl386.exe16/ne_module.c b/dlls/krnl386.exe16/ne_module.c index fe801263379..9f777cc3833 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;