aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/elevate/loader.go
diff options
context:
space:
mode:
Diffstat (limited to 'elevate/loader.go')
-rw-r--r--elevate/loader.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/elevate/loader.go b/elevate/loader.go
index 03f4e7c6..d474a007 100644
--- a/elevate/loader.go
+++ b/elevate/loader.go
@@ -13,14 +13,14 @@ import (
/* We could use the undocumented LdrFindEntryForAddress function instead, but that's undocumented, and we're trying
* to be as rock-solid as possible here. */
-func findCurrentDataTableEntry() (entry *cLDR_DATA_TABLE_ENTRY, err error) {
- peb := rtlGetCurrentPeb()
+func findCurrentDataTableEntry() (entry *windows.LDR_DATA_TABLE_ENTRY, err error) {
+ peb := windows.RtlGetCurrentPeb()
if peb == nil || peb.Ldr == nil {
err = windows.ERROR_INVALID_ADDRESS
return
}
for cur := peb.Ldr.InMemoryOrderModuleList.Flink; cur != &peb.Ldr.InMemoryOrderModuleList; cur = cur.Flink {
- entry = (*cLDR_DATA_TABLE_ENTRY)(unsafe.Pointer(uintptr(unsafe.Pointer(cur)) - unsafe.Offsetof(cLDR_DATA_TABLE_ENTRY{}.InMemoryOrderLinks)))
+ entry = (*windows.LDR_DATA_TABLE_ENTRY)(unsafe.Pointer(uintptr(unsafe.Pointer(cur)) - unsafe.Offsetof(windows.LDR_DATA_TABLE_ENTRY{}.InMemoryOrderLinks)))
if entry.DllBase == peb.ImageBaseAddress {
return
}