File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ type DLL struct {
43
43
// LoadDLL loads DLL file into memory.
44
44
//
45
45
// Warning: using LoadDLL without an absolute path name is subject to
46
- // DLL preloading attacks. To safely load a system DLL, use LazyDLL
47
- // with System set to true, or use LoadLibraryEx directly.
46
+ // DLL preloading attacks. To safely load a system DLL, use [NewLazySystemDLL],
47
+ // [LazyDLL] with System set to true, or use [ LoadLibraryEx] directly.
48
48
func LoadDLL (name string ) (dll * DLL , err error ) {
49
49
namep , err := UTF16PtrFromString (name )
50
50
if err != nil {
@@ -271,6 +271,9 @@ func (d *LazyDLL) NewProc(name string) *LazyProc {
271
271
}
272
272
273
273
// NewLazyDLL creates new LazyDLL associated with DLL file.
274
+ //
275
+ // Warning: using NewLazyDLL without an absolute path name is subject to
276
+ // DLL preloading attacks. To safely load a system DLL, use [NewLazySystemDLL].
274
277
func NewLazyDLL (name string ) * LazyDLL {
275
278
return & LazyDLL {Name : name }
276
279
}
You can’t perform that action at this time.
0 commit comments