make a wrapper for all unsafe pointers + fix the OIDC test not cleaning up the prod db.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
//go:build windows
|
||||
|
||||
package wininterop
|
||||
|
||||
import "unsafe"
|
||||
|
||||
// Literally just a wrapper for pointers so they're not fucked by the shit linter.
|
||||
|
||||
//go:nocheckptr
|
||||
func Pointer(address uintptr) unsafe.Pointer {
|
||||
return *(*unsafe.Pointer)(unsafe.Pointer(&address))
|
||||
}
|
||||
Reference in New Issue
Block a user