https://bugs.winehq.org/show_bug.cgi?id=50698
Bug ID: 50698 Summary: ::wcsrtombs does not NULL "const wchar_t ** _PSource" parameter in Wine. Product: Wine Version: 6.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: besentv@gmail.com Distribution: ---
Created attachment 69428 --> https://bugs.winehq.org/attachment.cgi?id=69428 Example program to test ::wcsrtombs
Windows NULLs the "_PSource" parameter after executing ::wcsrtombs whereas Wine does not.
I posted some example code as attachment that shows what exactly is going on.
The following output was generated from an executable using the example code built with Visual Studio 2019 in Release x86 configuration.
Windows Output:
Values before wcsrtombs: X 001CFAF0 2 001CFAF4 Values after wcsrtombs: 1 00000000 2 001CFAF4
Wine Output:
Values before wcsrtombs: X 0031FED8 2 0031FEDC Values after wcsrtombs: 1 0031FED8 2 0031FEDC
As you can see, the second parameter is NULL'ed on Windows but not using Wine.
https://bugs.winehq.org/show_bug.cgi?id=50698
Bernhard besentv@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |ArchLinux
https://bugs.winehq.org/show_bug.cgi?id=50698
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |msvcrt
https://bugs.winehq.org/show_bug.cgi?id=50698
Robert Walker bob.mt.wya@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bob.mt.wya@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=50698
Bernhard besentv@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Bernhard besentv@gmail.com --- Fixed: https://www.winehq.org/pipermail/wine-devel/2021-March/181890.html
https://bugs.winehq.org/show_bug.cgi?id=50698
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |3dca00f1dd7e8ff1abe0a15af33 | |65b4f7c7ae042
https://bugs.winehq.org/show_bug.cgi?id=50698
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.4.
https://bugs.winehq.org/show_bug.cgi?id=50698
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |6.0.x
https://bugs.winehq.org/show_bug.cgi?id=50698
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|6.0.x |---
--- Comment #3 from Michael Stefaniuc mstefani@winehq.org --- Removing the 6.0.x milestone from bug fixes included in 6.0.1.