https://bugs.winehq.org/show_bug.cgi?id=41432
Bug ID: 41432 Summary: Keyboard input code display program (Japanese VB6 application) doesn't run. Product: Wine Version: 1.9.18 Hardware: x86-64 URL: http://www.technoveins.co.jp/utility/keyindisp/index.h tm OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: sagawa.aki+winebugs@gmail.com Distribution: ---
Keyboard input code display program is a Japanese VB6 application. It shows keyboard scan code information etc. on native (Windows). However, on wine environment, it shows insufficient memory error (メモリが不足しています。終了します。) and doesn't run.
https://bugs.winehq.org/show_bug.cgi?id=41432
--- Comment #1 from Sagawa sagawa.aki+winebugs@gmail.com --- WINEDEBUG=relay shows this issue seems to be caused by lacking of LCMAP_HALFWIDTH support in LCMapString function:
; LCMAP_HALFWIDTH(0x00400000) makes half-width character. In this case, the result is 2 bytes including null byte. 0009:Call KERNEL32.LCMapStringA(00000411,00600100,0033fb20 "\x82",00000002,0033fb12,00000002) ret=6607e27e ; Lacking LCMAP_HALFWIDTH implementation, it requires three bytes under wine ; --> LCMapStringA fails due to insufficient buffer. 0009: Ret KERNEL32.LCMapStringA() retval=00000000 ret=6607e27e ; error handling is started... 0009: Call KERNEL32.GetLastError() ret=66072d3f 0009: Ret KERNEL32.GetLastError() retval=0000007c ret=66072d3f 0009: Call ntdll.RtlAllocateHeap(00920000,00000000,00000400) ret=66072899 0009: Ret ntdll.RtlAllocateHeap() retval=00921170 ret=66072899 0009: Call user32.LoadStringA(66630000,000059da,00921170,00000400) ret=66072c1a 0009: Ret user32.LoadStringA() retval=00000021 ret=66072c1a
https://bugs.winehq.org/show_bug.cgi?id=41432
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #2 from Sagawa sagawa.aki+winebugs@gmail.com --- I sent LCMAP_HALFWIDTH patch last night[1]. With the patch, the application starts without issues.
[1] https://source.winehq.org/patches/data/126772
https://bugs.winehq.org/show_bug.cgi?id=41432
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com, | |austinenglish@gmail.com, | |winetest@luukku.com
--- Comment #3 from winetest@luukku.com --- (In reply to Sagawa from comment #2)
I sent LCMAP_HALFWIDTH patch last night[1]. With the patch, the application starts without issues.
The commit got merged and this works now?
http://source.winehq.org/git/wine.git/commit/429ca40fc89df38342a28047cf387ad...
https://bugs.winehq.org/show_bug.cgi?id=41432
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |429ca40fc89df38342a28047cf3 | |87ade9e2a05dc Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Regression SHA1| |6938fec4aeb3b94ed184e3c272e | |7e278f354117e
--- Comment #4 from Sagawa sagawa.aki+winebugs@gmail.com --- Thanks pointing out. Yes, it's fixed by the patch.
git bisecting shows this is a regression by my patch (6938fec4aeb3b94ed184e3c272e7e278f354117e). Ouch.
https://bugs.winehq.org/show_bug.cgi?id=41432
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.21.