Skip to content

Commit

Permalink
fix: Use nil for null HWINDOW.
Browse files Browse the repository at this point in the history
refs #99
  • Loading branch information
pravic committed Dec 29, 2017
1 parent 4f243b2 commit 9646a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sciter.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ func (s *Sciter) SetOption(option Sciter_RT_OPTIONS, value uint) (ok bool) {
func SetOption(option Sciter_RT_OPTIONS, value uint) (ok bool) {
coption := C.UINT(option)
cvalue := C.UINT_PTR(value)
hwnd := C.HWINDOW(0)
hwnd := C.HWINDOW(nil)
r := C.SciterSetOption(hwnd, coption, cvalue)
if r == 0 {
return false
Expand Down

0 comments on commit 9646a0a

Please sign in to comment.