[Bug 46318] New: vbscript doesn' t parse if identifier is also keyword token
wine-bugs at winehq.org
wine-bugs at winehq.org
Mon Dec 17 16:59:46 CST 2018
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 at winehq.org
Reporter: brendan at 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.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list