https://bugs.winehq.org/show_bug.cgi?id=35821
Bug ID: 35821 Summary: wPrime 2.09 (VB6 app) reports 'Run-time error 445: Object doesn't support this action' (needs ITextStream ReadLine method implementation) Product: Wine Version: 1.7.14 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: scrrun Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net
Hello folks,
as the summary says ...
Prerequisite: 'winetricks -q vb6run'
--- snip --- $ WINEDEBUG=+tid,+seh,+relay,+msi,+scrrun,+vbscript wine ./wPrime.exe >>log.txt 2>&1 ... 0041:trace:scrrun:filesys_OpenTextFile (0x7e274450)->(L"wprime.exe" 1 0 0 0x33f808) 0041:Call ntdll.RtlAllocateHeap(00110000,00000000,00000028) ret=7e256408 0041:Ret ntdll.RtlAllocateHeap() retval=00148be0 ret=7e256408 0041:Call KERNEL32.CreateFileW(004058dc L"wprime.exe",80000000,00000000,00000000,00000003,00000080,00000000) ret=7e257c80 0041:Ret KERNEL32.CreateFileW() retval=000000a4 ret=7e257c80 0041:Call KERNEL32.GetFileSizeEx(000000a4,00148bf8) ret=7e257cd9 0041:Ret KERNEL32.GetFileSizeEx() retval=00000001 ret=7e257cd9 0041:trace:scrrun:textstream_QueryInterface (0x148be0)->({53bad8c1-e718-11cf-893d-00a0c9054228} 0x33f6e8) 0041:trace:scrrun:textstream_AddRef (0x148be0)->(2) 0041:trace:scrrun:textstream_Release (0x148be0)->(1) 0041:trace:scrrun:textstream_get_AtEndOfStream (0x148be0)->(0x33f7b4) 0041:Call KERNEL32.SetFilePointerEx(000000a4,00000000,00000000,0033f6b8,00000001) ret=7e257217 0041:Ret KERNEL32.SetFilePointerEx() retval=00000001 ret=7e257217 0041:fixme:scrrun:textstream_ReadLine (0x148be0)->(0x33f814): stub 0041:trace:scrrun:textstream_AddRef (0x148be0)->(2) 0041:trace:scrrun:textstream_QueryInterface (0x148be0)->({df0b3d60-548f-101b-8e65-08002b2bd119} 0x33f698) 0041:trace:scrrun:textstream_Release (0x148be0)->(1) ... 0041:Call KERNEL32.RaiseException(c000008f,00000001,00000002,0033f678) ret=660d0956 0041:trace:seh:raise_exception code=c000008f flags=1 addr=0x7b83ab23 ip=7b83ab23 tid=0041 0041:trace:seh:raise_exception info[0]=deadcafe 0041:trace:seh:raise_exception info[1]=deadcafe 0041:trace:seh:raise_exception eax=7b826b89 ebx=7b8bb000 ecx=deadcafe edx=0033f5d4 esi=0033f678 edi=0033f640 0041:trace:seh:raise_exception ebp=0033f618 esp=0033f5b4 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00000283 0041:trace:seh:call_stack_handlers calling handler at 0x401b66 code=c000008f flags=1 ... 0041:Call KERNEL32.WideCharToMultiByte(00000000,00000000,0014a644 L"Run-time error '445':\n\nObject doesn't support this action",ffffffff,00bbf0f8,00000072,00000000,00000000) ret=660711c4 --- snip ---
Source: http://source.winehq.org/git/wine.git/blob/038438ad696fc936a6bae5669bc0f35d7...
--- snip --- 374 static HRESULT WINAPI textstream_ReadLine(ITextStream *iface, BSTR *text) 375 { 376 struct textstream *This = impl_from_ITextStream(iface); 377 FIXME("(%p)->(%p): stub\n", This, text); 378 379 if (textstream_check_iomode(This, IORead)) 380 return CTL_E_BADFILEMODE; 381 382 return E_NOTIMPL; 383 } --- snip ---
$ sha1sum wPrime.exe 68fe810b959eec35e875994f14f6356aca5cc19d wPrime.exe
$ du -sh wPrime.exe 2.6M wPrime.exe
$ wine --version wine-1.7.14-185-g5cf20ce
Regards
https://bugs.winehq.org/show_bug.cgi?id=35821
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.hardware-guy.com | |/appz/CPU_&_System_Tools/wP | |rime/wPrime209.zip
http://bugs.winehq.org/show_bug.cgi?id=35821
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- ReadLine() works in a strange way, for example it can read data like this:
--- "line\r\nsomemore" -> returns "line" ---
but for slightly altered input:
--- "li1ne\r\nsomemore" -> returns "li1n" ---
so it eats significant data for some reason. I was testing ascii data only for now. So it will need more time.
https://bugs.winehq.org/show_bug.cgi?id=35821
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #2 from Béla Gyebrószki gyebro69@gmail.com --- The configuration tool for Europa Universalis II also needs this function. The settings editor doesn't start, it's just spamming the console endlessly with:
... fixme:scrrun:textstream_ReadLine (0x1f4248)->(0x33f480): stub ...
wine-1.7.44-149-g0922865
https://bugs.winehq.org/show_bug.cgi?id=35821
--- Comment #3 from Béla Gyebrószki gyebro69@gmail.com --- Still present in wine-1.9.12-161-g754c681.
https://bugs.winehq.org/show_bug.cgi?id=35821
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|wPrime 2.09 (VB6 app) |wPrime 2.x (VB6 app) |reports 'Run-time error |reports 'Run-time error |445: Object doesn't support |445: Object doesn't support |this action' (needs |this action' (needs |ITextStream ReadLine method |ITextStream ReadLine method |implementation) |implementation) URL|http://www.hardware-guy.com |https://web.archive.org/web |/appz/CPU_&_System_Tools/wP |/20160802151825/http://down |rime/wPrime209.zip |loads.putme.net/wPrime210.z | |ip
--- Comment #4 from Anastasius Focht focht@gmx.net --- Hello folks,
revisiting, still present.
Replaced original download with stable link to v2.10 which exhibits the same problem (2.09 disappeared):
https://web.archive.org/web/20160802151825/http://downloads.putme.net/wPrime...
https://source.winehq.org/git/wine.git/blob/HEAD:/dlls/scrrun/filesystem.c#l...
$ sha1sum wPrime210.zip a9b7d7762aa2a0b411865f832a8f0c72868e0d97 wPrime210.zip
$ du -sh wPrime210.zip 1000K wPrime210.zip
$ wine --version wine-4.3-229-g6d82b2f1ad
Regards
https://bugs.winehq.org/show_bug.cgi?id=35821
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com Resolution|--- |FIXED Fixed by SHA1| |14de44513f343ad0e9590df07a8 | |77a6d250964bf Status|NEW |RESOLVED
--- Comment #5 from Jacek Caban jacek@codeweavers.com --- Fixed in git.
https://bugs.winehq.org/show_bug.cgi?id=35821
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.20.