Closed wusyong closed 3 years ago
I suppose this is somehow related to #15.
get_interface will crash and return a STATUS_ACCESS_VIOLATION on release build if the get_method returns null pointer. Use ptr::null_mut instead of MaybeUninit can resolve this issue.
get_interface
get_method
ptr::null_mut
MaybeUninit
Tested with stream_range and custom_protocol from wry's example.
stream_range
custom_protocol
So get_method no longer sets the pointer to NULL when it has nothing to return.
NULL
Thanks!
I suppose this is somehow related to #15.
get_interface
will crash and return a STATUS_ACCESS_VIOLATION on release build if theget_method
returns null pointer. Useptr::null_mut
instead ofMaybeUninit
can resolve this issue.Tested with
stream_range
andcustom_protocol
from wry's example.