[Bug 49344] Implement kernelbase.GetModuleFileNameW using ntdll.LdrGetDllFullName

WineHQ Bugzilla wine-bugs at winehq.org
Sun Oct 3 08:09:11 CDT 2021


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

Arne de Bruijn <wine at 2ar.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wine at 2ar.nl

--- Comment #2 from Arne de Bruijn <wine at 2ar.nl> ---
This change broke passing large buffers (>=32768 characters) to
GetModuleFileNameW, as done by cygwin.

Possible fix:

     name.MaximumLength = (size < 0xffff / sizeof(WCHAR) ? size : 0xffff /
sizeof(WCHAR)) * sizeof(WCHAR);

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