https://bugs.winehq.org/show_bug.cgi?id=57563
Bug ID: 57563 Summary: vbscript: mid() throws when passed VT_EMPTY instead of returning empty string Product: Wine Version: 9.4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: vbscript Assignee: wine-bugs@winehq.org Reporter: francisdb@gmail.com Distribution: ---
Dim Uninitialized(1) Wscript.Echo "Uninitialized(0) = " & Uninitialized(0) Wscript.Echo "TypeName(Uninitialized(0)) = " & TypeName(Uninitialized(0)) Dim t: t = mid(Uninitialized(0),1,2) Wscript.Echo "t = " & t Wscript.Echo "TypeName(t) = " & TypeName(t)
Wine
/opt/wine-devel/bin/wine cscript test.vbs Uninitialized(0) = TypeName(Uninitialized(0)) = Empty 0120:fixme:wscript:ActiveScriptSite_OnScriptError ()
Windows
cscript //Nologo test2.vbs Uninitialized(0) = TypeName(Uninitialized(0)) = Empty t = TypeName(t) = String
[Done] exited with code=0 in 0.061 seconds
Related code: https://gitlab.winehq.org/wine/wine/-/blob/master/dlls/vbscript/global.c?ref...
https://bugs.winehq.org/show_bug.cgi?id=57563
--- Comment #1 from francisdb francisdb@gmail.com --- https://gitlab.winehq.org/wine/wine/-/merge_requests/7049