Thank you Piotr. Yes, Sgn(Null) will return error, so do conversion functions. I wonder whether should I send some patches to fix the conversion functions.
I have found that when Sgn(Null) is called, Err.number = 94, this error is described as
Invalid use of Null, but I can't find the correspond description in wine/include/winerror.h.