ntdll: RtlInitUnicodeString on a string too long to fit in a UNICODE_STRING should set the it to have the maximum possible length and size rather than a modulus of the actual length.

Robert Shearman rob at codeweavers.com
Thu Jan 4 10:55:58 CST 2007

Fix test failures for RtlInitUnicodeString on Windows XP upwards.
  dlls/ntdll/rtlstr.c       |    5 ++++-
  dlls/ntdll/tests/rtlstr.c |    8 ++++----
  2 files changed, 8 insertions(+), 5 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 21ae0a0532ca2d1eaf7908cd9cc0047221a9e077.diff
Type: text/x-patch
Size: 1613 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070104/af48485c/21ae0a0532ca2d1eaf7908cd9cc0047221a9e077.bin

More information about the wine-patches mailing list