Re: msvcrt: Added _resetstkoflw implementation

2011-04-20 Thread Alexandre Julliard
Piotr Caban writes: > StackLimit is updated by virtual_handle_stack_fault before > _resetstkoflw exits. Should I update it explicitly in _resetstkoflw > function? I suppose you can assume you'll get a stack fault at that point. A comment to that effect would be a good idea. -- Alexandre Jullia

Re: msvcrt: Added _resetstkoflw implementation

2011-04-20 Thread Piotr Caban
On 04/19/11 18:04, Alexandre Julliard wrote: This doesn't make sense to me, why do you need a VirtualAlloc in there? It's not needed. And what about the limits in the TEB? StackLimit is updated by virtual_handle_stack_fault before _resetstkoflw exits. Should I update it explicitly in _resetst

Re: msvcrt: Added _resetstkoflw implementation

2011-04-19 Thread Alexandre Julliard
Piotr Caban writes: > +/* > + * _resetstkoflw (MSVCRT.@) > + */ > +int CDECL _resetstkoflw(void) > +{ > +MEMORY_BASIC_INFORMATION mbi; > +SYSTEM_INFO info; > +DWORD prot; > +void *alloc; > + > +GetSystemInfo(&