https://bugs.winehq.org/show_bug.cgi?id=54486
Bug ID: 54486 Summary: getenv_s returns the wrong value Product: Wine Version: 8.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ucrtbase Assignee: wine-bugs@winehq.org Reporter: blitzkriegoutlaw@hotmail.com Distribution: ---
Created attachment 74039 --> https://bugs.winehq.org/attachment.cgi?id=74039 Test case
'getenv_s(&l, NULL, 0, "HOMEDRIVE");' returns 0 (success) on Windows and 35 (ERANGE) with Wine. ERANGE should be returned only if buffer and numberOfElements are provided.