msvcrt: Do not omit mandatory argument to VirtualProtect.
This commit is contained in:
parent
cfd09b0967
commit
1ab9c79dca
|
@ -394,9 +394,10 @@ unsigned int CDECL _set_output_format(unsigned int new_output_format)
|
||||||
int CDECL MSVCRT__resetstkoflw(void)
|
int CDECL MSVCRT__resetstkoflw(void)
|
||||||
{
|
{
|
||||||
int stack_addr;
|
int stack_addr;
|
||||||
|
DWORD oldprot;
|
||||||
|
|
||||||
/* causes stack fault that updates NtCurrentTeb()->Tib.StackLimit */
|
/* 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|
|
Loading…
Reference in New Issue