Skip to content
Commit 8bd6a203 authored by Haitao Feng's avatar Haitao Feng Committed by Narayan Kamath
Browse files

Use NULL instead of 0 for pointer arguments of CallStaticVoidMethod.



CallStaticVoidMethod is varargs function, and calling it with
a literal 0 like CallStaticVoidMethod(..., 0) will treat the
argument as a 4 byte int in both 32 and 64 bit processes.

This is incorrect for pointer arguments where NULL should be
used instead.

Reviewed-by: default avatarLiao, Bruce <bruce.liao@intel.com>
Signed-off-by: default avatarYong Yao <yong.yao@intel.com>

Change-Id: I9d700d3790a80dbee6826f64baf9ef5d81ca390f
parent 72d33849
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment