Windows2000/private/ntos/dll/alpha/ldrctx.c
2020-09-30 17:12:32 +02:00

55 lines
762 B
C

/*++
Copyright (c) 1998 Microsoft Corporation
Module Name:
ldrctx.c
Abstract:
This module contains support for relocating executables.
Author:
Landy Wang (landyw) 8-Jul-1998
Environment:
User Mode only
Revision History:
--*/
#include <ntos.h>
VOID
LdrpRelocateStartContext (
IN PCONTEXT Context,
IN LONG_PTR Diff
)
/*++
Routine Description:
This routine relocates the start context to mesh with the
executable that has just been relocated.
Arguments:
Context - Supplies a context that needs editing.
Diff - Supplies the difference from the based address to the relocated
address.
Return Value:
None.
--*/
{
Context->IntA0 += (ULONGLONG)Diff;
Context->IntGp += (ULONGLONG)Diff;
}