Commit 1ab9c79d authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

msvcrt: Do not omit mandatory argument to VirtualProtect.

parent cfd09b09
......@@ -394,9 +394,10 @@ unsigned int CDECL _set_output_format(unsigned int new_output_format)
int CDECL MSVCRT__resetstkoflw(void)
{
int stack_addr;
DWORD oldprot;
/* causes stack fault that updates NtCurrentTeb()->Tib.StackLimit */
return VirtualProtect( &stack_addr, 1, PAGE_GUARD|PAGE_READWRITE, NULL );
return VirtualProtect(&stack_addr, 1, PAGE_GUARD|PAGE_READWRITE, &oldprot);
}
/*********************************************************************
......
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