Skip to content

Commit db843bd

Browse files
committed
fixup! feat: Expose ScnLoadData.RequestId()
1 parent aa0127b commit db843bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sciter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ var (
134134
// \param[in] data \b LPBYTE, pointer to data buffer.
135135
// \param[in] requestId \b LPVOID, SCN_LOAD_DATA requestId.
136136
// \return \b BOOL, TRUE if Sciter accepts the data or \c FALSE if error occured
137-
func (s *Sciter) DataReadyAsync(uri string, data []byte, requestId C.HREQUEST) bool {
137+
func (s *Sciter) DataReadyAsync(uri string, data []byte, requestId C.LPVOID) bool {
138138
// args
139139
var pData C.LPCBYTE
140140
if len(data) > 0 {

types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,8 +1008,8 @@ func (s *ScnLoadData) Uri() string {
10081008
return Utf16ToString((*uint16)(unsafe.Pointer(s.uri)))
10091009
}
10101010

1011-
func (s *ScnLoadData) RequestId() C.HREQUEST {
1012-
return s.RequestId
1011+
func (s *ScnLoadData) RequestId() C.LPVOID {
1012+
return s.requestId
10131013
}
10141014

10151015
func (s *ScnLoadData) Data() []byte {

0 commit comments

Comments
 (0)