PATCH: bug fix in loader/ne/segment.c
root
thielen at netprince.net
Fri Aug 10 23:52:17 CDT 2001
Hello Everybody,
I've been working on a wine bug loading Finale 3.0 (a music typesetting
application) on and off for about the last two years. Applying this
patch allows Finale to load now. Since Finale 3.0 is a 16-bit windows
application it was expecting file handles to start at 5. Since a file
handle was not being closed properly in segment.c when the DLLS were
loaded, the file handles started at 8 instead. Specifically, this bug
affected the C-Tree Plus DLL used by Finale, so this may fix problems in
other 16 bit applications that use this dll.
Josh Thielen
-------------- next part --------------
Index: wine/loader/ne/segment.c
===================================================================
RCS file: /home/wine/wine/loader/ne/segment.c,v
retrieving revision 1.41
diff -u -r1.41 segment.c
--- wine/loader/ne/segment.c 2001/07/11 18:56:46 1.41
+++ wine/loader/ne/segment.c 2001/08/11 03:37:07
@@ -453,7 +453,7 @@
pModule->self,hFile16);
NE_CallTo16_word_ww(selfloadheader->BootApp, pModule->self,hFile16);
TRACE_(dll)("Return from CallBootAppProc\n");
- _lclose16(hf);
+ _lclose16(hFile16);
NtCurrentTeb()->cur_stack = oldstack;
for (i = 2; i <= pModule->seg_count; i++)
More information about the wine-patches
mailing list