Skip to content

Commit 9646a0a

Browse files
committed
fix: Use nil for null HWINDOW.
refs sciter-sdk#99
1 parent 4f243b2 commit 9646a0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sciter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ func (s *Sciter) SetOption(option Sciter_RT_OPTIONS, value uint) (ok bool) {
394394
func SetOption(option Sciter_RT_OPTIONS, value uint) (ok bool) {
395395
coption := C.UINT(option)
396396
cvalue := C.UINT_PTR(value)
397-
hwnd := C.HWINDOW(0)
397+
hwnd := C.HWINDOW(nil)
398398
r := C.SciterSetOption(hwnd, coption, cvalue)
399399
if r == 0 {
400400
return false

0 commit comments

Comments
 (0)