https://bugs.winehq.org/show_bug.cgi?id=46318
Bug ID: 46318 Summary: vbscript doesn't parse if identifier is also keyword token Product: Wine Version: 4.0-rc1 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: vbscript Assignee: wine-bugs@winehq.org Reporter: brendan@redmandi.com Distribution: ---
Created attachment 63051 --> https://bugs.winehq.org/attachment.cgi?id=63051 Treat all tokens after immediately following a '.' as identifier
The following vbscript currently fails with a parsing error:
Set oLocator = CreateObject("Wbemscripting.SWbemLocator") Set oReg = oLocator.ConnectServer("", "root\default", "", "").Get("StdRegProv")
The issue appears to be using a method named 'Get' which is also one of the tokens used in the parse.
I was able to fix this by modifying the parse to treat any value immediately after a '.' as an identifier. Although I'm not familiar enough with vbscript syntax to know if this will cause any other issues.
The patch used is attached.
https://bugs.winehq.org/show_bug.cgi?id=46318
Brendan McGrath brendan@redmandi.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |78078b65b27177fecbd2f45bb5c | |14b3a21aa1c88
--- Comment #1 from Brendan McGrath brendan@redmandi.com --- The example code now runs with the latest from git (currently 1e8f4c059befe4a026ddf5c56e81d720b35c6c2f). This was fixed in 78078b65b27177fecbd2f45bb5c14b3a21aa1c88, which will be available in Wine version 4.3.
Most keywords are now supported, but the 'rem' keyword still results in a parsing error. This is being tracked by a 'todo_wine' test which was added in commit dac7441b4e83a2ca3d0ab4a1f41903a9e7c8de20.
https://bugs.winehq.org/show_bug.cgi?id=46318
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com
--- Comment #2 from Jacek Caban jacek@codeweavers.com --- Bug 37972 seems also related.
https://bugs.winehq.org/show_bug.cgi?id=46318
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.3.
https://bugs.winehq.org/show_bug.cgi?id=46318
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.0.x
https://bugs.winehq.org/show_bug.cgi?id=46318
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.x |---
--- Comment #4 from Michael Stefaniuc mstefani@winehq.org --- Removing the 4.0.x milestone from bug fixes included in 4.0.1.