https://bugs.winehq.org/show_bug.cgi?id=53014
--- Comment #7 from jswinebz@kanargh.org.uk --- I refer you to https://docs.microsoft.com/en-us/windows/win32/api/subauth/ns-subauth-unicod...
Length
Specifies the length
MaximumLength
Specifies the total size, in bytes
There is no "in this case", UNICODE_STRING members are in *bytes* in *all cases*.
And there is clearly a bug relative to the patch I posted because half the code assumes bytes (and is correct) and half assumes characters (and it wrong).
There is just no question about that: that is the public windows interface.