Skip to content

Commit 12ab2db

Browse files
committed
Fix set value for element.
1 parent 4fcee17 commit 12ab2db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sciter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,10 +1720,10 @@ func (e *Element) GetValue() (*Value, error) {
17201720
// \param[in] pval \b VALUE*, pointer to the VALUE to set.
17211721
func (e *Element) SetValue(v *Value) error {
17221722
// args
1723-
cv := (*C.VALUE)(unsafe.Pointer(&v))
1723+
cv := (*C.VALUE)(unsafe.Pointer(v))
17241724
// cgo call
17251725
r := C.SciterSetValue(e.handle, cv)
1726-
return wrapDomResult(r, "SciterGetValue")
1726+
return wrapDomResult(r, "SciterSetValue")
17271727
}
17281728

17291729
// SCDOM_RESULT SciterGetExpando( HELEMENT he, VALUE* pval, BOOL forceCreation ) ;//{ return SAPI()->SciterGetExpando( he, pval, forceCreation ); }

0 commit comments

Comments
 (0)