[Bug 48471] Mismatching behavior of GetEnvironmentVariableW for empty / long values

WineHQ Bugzilla wine-bugs at winehq.org
Thu Jan 16 21:50:43 CST 2020


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

Vladimir Panteleev <wine at thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch

--- Comment #1 from Vladimir Panteleev <wine at thecybershadow.net> ---
On Windows XP, the test program behaves differently:

0->0: size=0 error=234 buf[0]=1
0->1: size=0 error=1 buf[0]=0

1->0: size=2 error=1 buf[0]=1
1->1: size=2 error=1 buf[0]=1
1->2: size=1 error=1 buf[0]=97

2->0: size=3 error=1 buf[0]=1
2->1: size=3 error=1 buf[0]=1
2->2: size=3 error=1 buf[0]=1
2->3: size=2 error=1 buf[0]=97

(234 is ERROR_MORE_DATA)

So, this isn't so much of a Wine bug but rather Wine emulating the behavior of
older Windows versions.

Though, seeing how it affects "real" software, perhaps this should be fixed
anyway? D does not support any Windows versions exhibiting the old behavior.

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