Commit b58dadf0 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

vbscript: Fixed chr(0) implementation.

parent 34bf93fc
......@@ -1088,7 +1088,7 @@ static HRESULT Global_Chr(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIA
if(FAILED(hres))
return hres;
if(c <= 0 || c >= 0x100) {
if(c < 0 || c >= 0x100) {
FIXME("invalid arg\n");
return E_FAIL;
}
......
......@@ -119,6 +119,7 @@ if isEnglishLang then TestCStr true, "True"
Call ok(getVT(Chr(120)) = "VT_BSTR", "getVT(Chr(120)) = " & getVT(Chr(120)))
Call ok(getVT(Chr(255)) = "VT_BSTR", "getVT(Chr(255)) = " & getVT(Chr(255)))
Call ok(Chr(120) = "x", "Chr(120) = " & Chr(120))
Call ok(Chr(0) <> "", "Chr(0) = """"")
Call ok(isObject(new EmptyClass), "isObject(new EmptyClass) is not true?")
Set x = new EmptyClass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment