https://bugs.winehq.org/show_bug.cgi?id=56280
Bug ID: 56280 Summary: vbscript: String coerced to Integer instead of Long? Product: Wine Version: 9.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: vbscript Assignee: wine-bugs@winehq.org Reporter: francisdb@gmail.com Distribution: ---
cat test.vbs
Dim a, b a = "5592325" b = (a AND 15) * 515 WScript.Echo "test: " & b
wine --version
wine-9.0
wine cscript test.vbs
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 010c:fixme:wscript:ActiveScriptSite_OnScriptError ()
And on windows
cscript .\test.vbs
Microsoft (R) Windows Script Host Version 5.812 Copyright (C) Microsoft Corporation. All rights reserved.
test: 2575
I do wonder why wine cscript does not log more info on the error. From an other application I think I got VBSE_OVERFLOW.
https://bugs.winehq.org/show_bug.cgi?id=56280
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Component|vbscript |oleaut32 Status|UNCONFIRMED |NEW
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- We are using VarAnd() for this, and it's broken for (VT_BSTR,VT_I2) input apparently - it defaults to I2 result, which is wrong. String argument handling does not look right in general for this function.