ntdll: Implemented RtlPcToFileHeader.
This commit is contained in:
parent
f543aea5e3
commit
9769806c3a
|
@ -2224,6 +2224,22 @@ PVOID WINAPI RtlImageRvaToVa( const IMAGE_NT_HEADERS *nt, HMODULE module,
|
|||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* RtlPcToFileHeader (NTDLL.@)
|
||||
*/
|
||||
PVOID WINAPI RtlPcToFileHeader( PVOID pc, PVOID *address )
|
||||
{
|
||||
LDR_MODULE *module;
|
||||
PVOID ret = NULL;
|
||||
|
||||
RtlEnterCriticalSection( &loader_section );
|
||||
if (!LdrFindEntryForAddress( pc, &module )) ret = module->BaseAddress;
|
||||
RtlLeaveCriticalSection( &loader_section );
|
||||
*address = ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* NtLoadDriver (NTDLL.@)
|
||||
* ZwLoadDriver (NTDLL.@)
|
||||
|
|
|
@ -753,7 +753,7 @@
|
|||
@ stdcall RtlOemStringToUnicodeString(ptr ptr long)
|
||||
@ stdcall RtlOemToUnicodeN(ptr long ptr ptr long)
|
||||
@ stdcall RtlOpenCurrentUser(long ptr)
|
||||
@ stub RtlPcToFileHeader
|
||||
@ stdcall RtlPcToFileHeader(ptr ptr)
|
||||
@ stdcall RtlPinAtomInAtomTable(ptr long)
|
||||
# @ stub RtlPopFrame
|
||||
@ stdcall RtlPrefixString(ptr ptr long)
|
||||
|
|
|
@ -2120,6 +2120,7 @@ NTSTATUS WINAPI RtlOemStringToUnicodeString(UNICODE_STRING*,const STRING*,BOOLE
|
|||
NTSTATUS WINAPI RtlOemToUnicodeN(LPWSTR,DWORD,LPDWORD,LPCSTR,DWORD);
|
||||
NTSTATUS WINAPI RtlOpenCurrentUser(ACCESS_MASK,PHANDLE);
|
||||
|
||||
PVOID WINAPI RtlPcToFileHeader(PVOID,PVOID*);
|
||||
NTSTATUS WINAPI RtlPinAtomInAtomTable(RTL_ATOM_TABLE,RTL_ATOM);
|
||||
BOOLEAN WINAPI RtlPrefixString(const STRING*,const STRING*,BOOLEAN);
|
||||
BOOLEAN WINAPI RtlPrefixUnicodeString(const UNICODE_STRING*,const UNICODE_STRING*,BOOLEAN);
|
||||
|
|
Loading…
Reference in New Issue