[Bug 50698] New: ::wcsrtombs does not NULL "const wchar_t ** _PSource" parameter in Wine.

WineHQ Bugzilla wine-bugs at winehq.org
Fri Feb 19 09:42:10 CST 2021


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 at winehq.org
          Reporter: besentv at 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.

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