https://bugs.winehq.org/show_bug.cgi?id=54731
Bug ID: 54731 Summary: vbscript: stack_pop_bool doesn't support floats or ole color Product: Wine Version: 8.4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: vbscript Assignee: wine-bugs@winehq.org Reporter: jsm174@gmail.com Distribution: ---
While working on porting Visual Pinball to cross platform, I've found some scripts where comparisons that use floats and OLECOLOR directly fail. For example:
If Light005.State Then ' State is a float V_R4 like 1.2 End If
If Light005.Colorfull Then ' Colorfull is an OLECOLOR VT_UI4 End If
Fixing involves updating stack_pop_bool to support more types as seen in VARIANT_Coerce.
https://bugs.winehq.org/show_bug.cgi?id=54731
--- Comment #1 from Jason Millard jsm174@gmail.com --- MR 2507 submitted.
https://bugs.winehq.org/show_bug.cgi?id=54731
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- https://gitlab.winehq.org/wine/wine/-/merge_requests/3132
https://bugs.winehq.org/show_bug.cgi?id=54731
--- Comment #3 from Jason Millard jsm174@gmail.com --- Fantastic! Tested and working great.
Apologizes on dropping the ball on MR 2507. Got sidetracked at the time and forgot about wrapping it up.
https://bugs.winehq.org/show_bug.cgi?id=54731
--- Comment #4 from Jason Millard jsm174@gmail.com --- Since there has been some updates on vbscript recently, figured I'd bump this.
I'm not sure why https://gitlab.winehq.org/wine/wine/-/merge_requests/3132 keeps failing the tests.
We have been using this patch for months and it does work fine.
https://bugs.winehq.org/show_bug.cgi?id=54731
Robert Wilhelm sloper42@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW CC| |sloper42@yahoo.com
--- Comment #5 from Robert Wilhelm sloper42@yahoo.com ---
The failing test is
while null call ok(false, "while null evaluated") wend
Looking at the MR, for case VT_NULL *b is assigned a value two time. At second time from uninitialized Variant v.
https://bugs.winehq.org/show_bug.cgi?id=54731
--- Comment #6 from Jason Millard jsm174@gmail.com --- Strange that is passes on the linux-test-64 side?
https://bugs.winehq.org/show_bug.cgi?id=54731
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Robert Wilhelm from comment #5)
The failing test is
while null call ok(false, "while null evaluated") wend
Looking at the MR, for case VT_NULL *b is assigned a value two time. At second time from uninitialized Variant v.
Good catch, I'll push an update.
https://bugs.winehq.org/show_bug.cgi?id=54731
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |0a7f5646e48358222327f90d773 | |39e762922d7ad Status|NEW |RESOLVED
--- Comment #8 from Nikolay Sivov bunglehead@gmail.com --- Marking fixed, https://gitlab.winehq.org/wine/wine/-/commit/0a7f5646e48358222327f90d77339e7....
https://bugs.winehq.org/show_bug.cgi?id=54731
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.0-rc1.