https://bugs.winehq.org/show_bug.cgi?id=48471
Vladimir Panteleev wine@thecybershadow.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #1 from Vladimir Panteleev wine@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.