aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--driver/dll_windows.go2
-rw-r--r--driver/memmod/memmod_windows.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/driver/dll_windows.go b/driver/dll_windows.go
index 0c4b2ee7..057595ec 100644
--- a/driver/dll_windows.go
+++ b/driver/dll_windows.go
@@ -88,4 +88,4 @@ func Version() string {
version += fmt.Sprintf(".%d", nextNibble)
}
return version
-} \ No newline at end of file
+}
diff --git a/driver/memmod/memmod_windows.go b/driver/memmod/memmod_windows.go
index 424e98b9..666adceb 100644
--- a/driver/memmod/memmod_windows.go
+++ b/driver/memmod/memmod_windows.go
@@ -169,7 +169,7 @@ func (module *Module) registerExceptionHandlers() {
if directory.Size == 0 || directory.VirtualAddress == 0 {
return
}
- runtimeFuncs := (*windows.RUNTIME_FUNCTION)(unsafe.Pointer(module.codeBase+uintptr(directory.VirtualAddress)))
+ runtimeFuncs := (*windows.RUNTIME_FUNCTION)(unsafe.Pointer(module.codeBase + uintptr(directory.VirtualAddress)))
windows.RtlAddFunctionTable(runtimeFuncs, uint32(uintptr(directory.Size)/unsafe.Sizeof(*runtimeFuncs)), module.codeBase)
}