<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-13 22:35 GMT+08:00 Piotr Caban <span dir="ltr"><<a href="mailto:piotr.caban@gmail.com" target="_blank">piotr.caban@gmail.com</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 07/13/14 15:49, Shuai Meng wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    You're not handling res==NULL case correctly. E.g. Call<br>
    Abs("string") should fail.<br>
<br>
I have tested this case for many times, and I think  Call Abs("string")<br>
is just OK <a href="https://testbot.winehq.org/JobDetails.pl?Key=7967" target="_blank">https://testbot.winehq.org/<u></u>JobDetails.pl?Key=7967</a><br>
and it's OK that write directly using vbscript on wiinxp and win7.<br>
</blockquote></div>
Abs should behave in the same way no matter it's return value is used or not. You have added following test:<br>
Call Abs(-4)<br>
it succeeds because -4 is a valid Abs argument. If you add this test:<br>
Call Abs("string")<br>
it will fail on windows.<br>
<br>
</blockquote></div>OK,I misunderstand you at first. So maybe I can just remove the two lines when res == NULL, I tested it and the result is good.</div></div>