Fix passing NULL pointers as arguments via ptrcall
This commit is contained in:
parent
5f3d6bc233
commit
715d1dc82b
@ -625,7 +625,7 @@ def generate_icall_implementation(icalls):
|
||||
if is_primitive(arg) or is_core_type(arg):
|
||||
wrapped_argument += "(void *) &arg" + str(i)
|
||||
else:
|
||||
wrapped_argument += "(void *) arg" + str(i) + "->_owner"
|
||||
wrapped_argument += "(void *) (arg" + str(i) + ") ? arg" + str(i) + "->_owner : nullptr"
|
||||
|
||||
wrapped_argument += ","
|
||||
source.append(wrapped_argument)
|
||||
|
Loading…
x
Reference in New Issue
Block a user