Skip to content

Commit 1144933

Browse files
committed
oleutil: fix ForEach no working as intented
1 parent 14974a1 commit 1144933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oleutil/oleutil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func MustPutPropertyRef(disp *ole.IDispatch, name string, params ...interface{})
103103
}
104104

105105
func ForEach(disp *ole.IDispatch, f func(v *ole.VARIANT) error) error {
106-
newEnum, err := disp.GetProperty("_NewEnum")
106+
newEnum, err := disp.CallMethod("_NewEnum")
107107
if err != nil {
108108
return err
109109
}

0 commit comments

Comments
 (0)