Commit 26952d7f authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

NE_MODULE.stack_size was set to a ridiculously small value of 5.

Windows sets 0x1400 in such cases for programs.
parent 1fea6b96
......@@ -480,6 +480,10 @@ static HMODULE16 NE_LoadExeHeader( HFILE16 hFile, OFSTRUCT *ofs )
pModule = (NE_MODULE *)GlobalLock16( hModule );
memcpy( pModule, &ne_header, sizeof(ne_header) );
pModule->count = 0;
/* check *programs* for default minimal stack size */
if ( (!(pModule->flags & NE_FFLAGS_LIBMODULE))
&& (pModule->stack_size < 0x1400) )
pModule->stack_size = 0x1400;
pModule->module32 = 0;
pModule->self = hModule;
pModule->self_loading_sel = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment