[Bug 50409] Adobe Audition 2020 crashes on startup (msvcrt strftime_impl uses __lc_time_data struct WCHAR members but only ANSI members have been initialized by _Gettnames)

WineHQ Bugzilla wine-bugs at winehq.org
Tue Feb 2 17:34:18 CST 2021


https://bugs.winehq.org/show_bug.cgi?id=50409

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Fixed by SHA1|                            |b3fcb0f2c854311bd1604df958a
                   |                            |6425c22c657b3
             Status|NEW                         |RESOLVED

--- Comment #3 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

this is fixed by commit
https://source.winehq.org/git/wine.git/commitdiff/b3fcb0f2c854311bd1604df958a6425c22c657b3
("msvcr110: Copy utf16 strings in _Gettnames.").

Thanks Piotr

In order to test the fix you have to have bug 50401 fixed before. I applied a
local patch for testing.

--- snip ---
...
0184:trace:msvcp:time_put_char_put_format (0000000013F89740 000000000021ED98
000000000021ED28   000000000021EDC8 "%c") 
0184:trace:msvcp:time_put_char_put (0000000013F89740 000000000021EC60
000000000021ED28   000000000021EDC8 c (0000000013F89740 000000000021EC60
000000000021ED28   000000000021EDC8 c Call
ucrtbase._Strftime(0021ea20,00000040,0021ea1c "%c",0021edc8,13f89770)
ret=00ae8454
0184:trace:msvcrt:strftime_helper (000000000021EA20 64 %c 000000000021EDC8
0000000013F89770 0000000000000000)
0184:Call KERNEL32.MultiByteToWideChar(00000000,00000000,0021ea1c
"%c",ffffffff,00000000,00000000) ret=0036d35d
0184:Call ntdll.strlen(0021ea1c "%c") ret=7b026fc4
0184:Ret  ntdll.strlen() retval=00000002 ret=7b026fc4
0184:Ret  KERNEL32.MultiByteToWideChar() retval=00000003 ret=0036d35d
...
0184:Call KERNEL32.MultiByteToWideChar(00000000,00000000,0021ea1c
"%c",ffffffff,140505d0,00000003) ret=0036d39e
0184:Call ntdll.strlen(0021ea1c "%c") ret=7b026fc4
0184:Ret  ntdll.strlen() retval=00000002 ret=7b026fc4
0184:Ret  KERNEL32.MultiByteToWideChar() retval=00000003 ret=0036d39e
...
0184:Call KERNEL32.WideCharToMultiByte(00000000,00000000,14050600 L"2/3/2021
12:15:54 AM",ffffffff,0021ea20,00000040,00000000,00000000) ret=0036d3f9
0184:Ret  KERNEL32.WideCharToMultiByte() retval=00000015 ret=0036d3f9
...
0184:Ret  ucrtbase._Strftime() retval=00000014 ret=00ae8454
...
--- snip ---

Tidbit: The seemingly corrupted output from 'time_put_char_put' is the result
from being called in a loop from 'time_put_char_put_format'.

$ wine --version
wine-6.1-70-g433b9081ba7

Regards

-- 
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