https://bugs.winehq.org/show_bug.cgi?id=53867
Bug ID: 53867
Summary: vbscript fails to retrieve property array by index
Product: Wine
Version: 7.20
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: vbscript
Assignee: wine-bugs(a)winehq.org
Reporter: jsm174(a)gmail.com
Distribution: ---
Given the following vbscript, access to aObj.ModIn(x) and aObj.ModOut(x) fail:
dim RubbersD : Set RubbersD = new Dampener
RubbersD.addpoint 0, 0, 1.1
RubbersD.addpoint 1, 3.77, 0.97
RubbersD.addpoint 2, 5.76, 0.967
RubbersD.addpoint 3, 15.84, 0.874
RubbersD.addpoint 4, 56, 0.64
dim SleevesD : Set SleevesD = new Dampener
SleevesD.CopyCoef RubbersD, 0.85
Class Dampener
Public ModIn, ModOut
Private Sub Class_Initialize : redim ModIn(5) : redim Modout(5): End Sub
Public Sub AddPoint(aIdx, aX, aY)
ModIn(aIdx) = aX
ModOut(aIdx) = aY
End Sub
Public Sub CopyCoef(aObj, aCoef)
dim x : for x = 0 to uBound(aObj.ModIn)
addpoint x, aObj.ModIn(x), aObj.ModOut(x)*aCoef
Next
End Sub
End Class
It seems invoke_variant_prop in vbdisp.c has specific code that looks to see if
there is an argument, and if so fails.
I've added a block that only fails if there are arguments and the variant is
not an ARRAY. I lifted the code from array_access in interp.c. Unfortunately
array_access is not available to vbdisp.c:
static HRESULT invoke_variant_prop(script_ctx_t *ctx, VARIANT *v, WORD flags,
DISPPARAMS *dp, VARIANT *res)
{
HRESULT hres;
switch(flags) {
case DISPATCH_PROPERTYGET|DISPATCH_METHOD:
case DISPATCH_PROPERTYGET:
if(dp->cArgs) {
if (V_ISARRAY(v)) {
SAFEARRAY *array = V_ARRAY(v);
unsigned i, argc = arg_cnt(dp);
LONG *indices;
if(!array) {
FIXME("NULL array\n");
return E_FAIL;
}
.
.
.
else {
WARN("called with arguments\n");
return DISP_E_MEMBERNOTFOUND; /* That's what tests show */
}
--
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.
https://bugs.winehq.org/show_bug.cgi?id=53296
Bug ID: 53296
Summary: USB Device Remover crashes on unimplemented function
mscoree.dll.StrongNameTokenFromAssembly
Product: Wine
Version: 7.11
Hardware: x86-64
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mscoree
Assignee: wine-bugs(a)winehq.org
Reporter: alexhenrie24(a)gmail.com
Distribution: ---
Created attachment 72662
--> https://bugs.winehq.org/attachment.cgi?id=72662
Console output
Pretty self-explanatory.
$ sha256sum DeviceRemoverSetup.exe
f22696f92b1e256264894cc7d87e205b285a9effd8fed30a4de3ea6431a40b5f
--
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.
https://bugs.winehq.org/show_bug.cgi?id=50941
Bug ID: 50941
Summary: TIP-Integral: crashes at installation
Product: Wine
Version: unspecified
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: winsock
Assignee: wine-bugs(a)winehq.org
Reporter: e.blomart(a)posteo.be
Distribution: ---
Created attachment 69751
--> https://bugs.winehq.org/attachment.cgi?id=69751
Wine bug report
I am trying to run an accounting application. The client is named "TIP
Integral" (https://www.integral.be/fr/download/)
I cannot connect to the server, because it has at least one function missing
from the Wine Implementation of WS2_32.dll; WSAConnectByNameW in this case.
The bug was issued on 3 different machines and also happened in Wine 6.4.
Cheers,
Emile
--
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.
https://bugs.winehq.org/show_bug.cgi?id=54564
Bug ID: 54564
Summary: Rich Edit crashes when Ctrl+Right is pressed at past
the final paragraph
Product: Wine
Version: 8.2
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: richedit
Assignee: wine-bugs(a)winehq.org
Reporter: jinoh.kang.kr(a)gmail.com
CC: huw(a)codeweavers.com
Distribution: ---
Rich Edit crashes with NULL dereference when Ctrl+Right is pressed at past the
final paragraph.
Steps to reproduce:
1. Open Wordpad.
2. Press "A".
3. Press Home or Left.
4. Press Ctrl+Right.
5. Press Ctrl+Right.
Expected behaviour:
Wine doesn't crash.
Actual behaviour:
Wine crashes inside `para_next`, because `ME_MoveCursorWords` tries to fetch
`next_para` of NULL paragraph pointer.
--
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.
https://bugs.winehq.org/show_bug.cgi?id=54490
Bug ID: 54490
Summary: vbscript fails to compile when statement follows
ElseIf
Product: Wine
Version: 7.21
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: vbscript
Assignee: wine-bugs(a)winehq.org
Reporter: jsm174(a)gmail.com
Distribution: ---
While working on porting Visual Pinball to cross platform, I ran into a code
example where ElseIf had a statement was on the same line:
If Lampz.state(130) = 0 AND Lampz.state(132) = 0 AND Lampz.state(136) =
0 Then
'
ACDC.ColorGradeImage="ColorGrade_off":Translite.Blenddisablelighting=0.2:For
Each bulb in BandMembersPoster: bulb.IntensityScale=0 :Next
ACDC.ColorGradeImage="ColorGrade_off":LM_Translite.intensityscale=0:For Each
bulb in BandMembersPoster: bulb.IntensityScale=0 :Next
ElseIf Lampz.state(130) > 0 AND Lampz.state(132) = 0 AND
Lampz.state(134) > 0 AND Lampz.state(136) = 0 Then
ACDC.ColorGradeImage="ColorGrade_red"
ElseIf Lampz.state(130) = 0 AND Lampz.state(132) > 0 AND
Lampz.state(134) = 0 AND Lampz.state(136) = 0 Then
ACDC.ColorGradeImage="ColorGrade_blue"
Else
'
ACDC.ColorGradeImage="ColorGrade_on":Translite.Blenddisablelighting=4:For Each
bulb in BandMembersPoster: bulb.IntensityScale=1:Next
ACDC.ColorGradeImage="ColorGrade_on":LM_Translite.intensityscale=1:For Each
bulb in BandMembersPoster: bulb.IntensityScale=1:Next
End If
The grammar was expecting a NL after ElseIf Then.
I have submitted a merge request:
https://gitlab.winehq.org/wine/wine/-/merge_requests/2188
--
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.
https://bugs.winehq.org/show_bug.cgi?id=54215
Bug ID: 54215
Summary: ListView doesn't refresh when changing between List
and Details styles.
Product: Wine
Version: 7.20
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: comctl32
Assignee: wine-bugs(a)winehq.org
Reporter: timoninvlad(a)yandex.ru
Distribution: ---
Can be observed in any `GetOpenFileName`/`GetSaveFileName` file dialog, for
example in `notepad` or `regedit`.
Regressed after a8396d8b1e852276b6cea9f2c50834739d1170da.
--
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.
https://bugs.winehq.org/show_bug.cgi?id=53981
Bug ID: 53981
Summary: Chromium broken sandbox due to GetSecurityInfo giving
access denied
Product: Wine
Version: 7.21
Hardware: x86-64
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: dark.shadow4(a)web.de
Distribution: ---
Created attachment 73562
--> https://bugs.winehq.org/attachment.cgi?id=73562
Hack to make it run
Chromium added some changes that break under wine.
Bisected to
https://github.com/chromium/chromium/commit/334d609732bfa22da7e5dd5e3543949…
Callstack:
https://github.com/chromium/chromium/blob/334d609732bfa22da7e5dd5e3543949c9…
broker_services.cc: ResultCode
BrokerServicesBase::CreateAlternateDesktop(Desktop desktop)
ResultCode result = alt_winstation_->Initialize(true);
ResultCode result = alt_desktop_->Initialize(false);
https://github.com/chromium/chromium/blob/334d609732bfa22da7e5dd5e3543949c9…
alternate_desktop.cc: ResultCode AlternateDesktop::Initialize(bool
alternate_winstation)
ResultCode result = CreateAltWindowStation(&winstation_);
https://github.com/chromium/chromium/blob/334d609732bfa22da7e5dd5e3543949c9…
window.cc: ResultCode CreateAltWindowStation(HWINSTA* winsta)
if (!GetSecurityAttributes(current_winsta, &attributes))
https://github.com/chromium/chromium/blob/334d609732bfa22da7e5dd5e3543949c9…
window.cc: bool GetSecurityAttributes(HANDLE handle, SECURITY_ATTRIBUTES*
attributes)
GetSecurityInfo
Then we enter "GetSecurityInfo" inside Wine.
That calls into NtQuerySecurityObject
And inside wineserver we call
struct object *get_handle_obj( struct process *process, obj_handle_t handle,
unsigned int access, const struct object_ops *ops )
which returns STATUS_ACCESS_DENIED
Attaching a hack to remove that check, that makes chrome run.
--
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.
https://bugs.winehq.org/show_bug.cgi?id=54458
Bug ID: 54458
Summary: vbscript memory leaks in Global_Split
Product: Wine
Version: 7.21
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: vbscript
Assignee: wine-bugs(a)winehq.org
Reporter: jsm174(a)gmail.com
Distribution: ---
While porting Visual Pinball to cross platform, I started using XCode
Instruments to find some outstanding memory leaks.
There appears to be a memory leak in Global_Split.
The BSTRs that get copied from "var" into the SafeArray using VariantCopyInd
are never freed.
The following code changes fix this:
for (i = 0; i < count; i++) {
str = SysAllocStringLen(string + start, indices[i] - start);
if (!str) {
hres = E_OUTOFMEMORY;
break;
}
V_VT(&var) = VT_BSTR;
V_BSTR(&var) = str;
hres = VariantCopyInd(data+i, &var);
if(FAILED(hres)) {
SafeArrayUnaccessData(sa);
SysFreeString(str);
goto error;
}
start = indices[i]+delimiterlen;
SysFreeString(str);
}
--
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.
https://bugs.winehq.org/show_bug.cgi?id=54456
Bug ID: 54456
Summary: vbscript memory leak in For Each with SafeArray as
group
Product: Wine
Version: 7.21
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: vbscript
Assignee: wine-bugs(a)winehq.org
Reporter: jsm174(a)gmail.com
Distribution: ---
While porting Visual Pinball to cross platform, I started using XCode
Instruments to find some outstanding memory leaks.
Given the following code:
Class cvpmDictionary
Private mDict
Private Sub Class_Initialize : Set mDict =
CreateObject("Scripting.Dictionary") : mDict("key") = "value" : End Sub
Public Function Keys : Keys = mDict.Keys : End
Function
End Class
Dim vpDict
Set vpDict = New cvpmDictionary
Sub RollingTimer_Timer
For Each obj In vpDict.Keys : Debug.Print "Key" : Next
End Sub
RollingTimer_Timer gets executed a few times a second. This seems to leak the
vpDict.Keys SafeArray.
If I change the code to:
Sub RollingTimer_Timer
Dim x
x = vpDict.Keys
For Each obj In x : Debug.Print "Key" : Next
End Sub
No memory leaks are detected. In this case, release_exec calls VariantClear for
ctx->vars which frees the SafeArray in X.
In the first case, vpDict.Keys doesn't appear to be stored anywhere, so nothing
is freed in release_exec.
--
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.
https://bugs.winehq.org/show_bug.cgi?id=54379
Bug ID: 54379
Summary: since wine 8.0 print doesn't work any more
Product: Wine
Version: 8.0
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: spam(a)abma.de
Distribution: ---
after upgrading to wine 8.0 printing to a network printer doesn't work any
more.
with wine 7.0 printing the same on the same printer just works.
i've run the app with:
WINEDEBUG=+winprint
see attachment:
not sure if relevant, what looks suspicious:
OpenPrintProcessor L", Port", 0740D014
--
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.