On 06/26/14 12:13, Shuai Meng wrote:
I guess you mean that I need to handle res==NULL case in branch if(V_VT(arg) == VT_NULL), right?
Yes, but return_null() function will already cover it for you.
There is another problem: though Abs(Null) should return Null according to http://msdn.microsoft.com/en-__us/library/307330xe(v=vs.84).__aspx http://msdn.microsoft.com/en-us/library/307330xe(v=vs.84).aspx , but I test it in WINXP, i.e. when arg == Null, the vbscript code: Call Abs(Null) and dim b b = Abs(Null) MsgBox b returns an error.
I don't see this issue. Probably you have done something incorrectly. Here's result from a testbot run that tests Abs(Null). The tests are working on all machines. http://newtestbot.winehq.org/JobDetails.pl?Key=7712