[USETUP]
authorPierre Schweitzer <pierre@reactos.org>
Mon, 7 Feb 2011 23:16:29 +0000 (23:16 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Mon, 7 Feb 2011 23:16:29 +0000 (23:16 +0000)
commitdab840147a4c17e4cd3beafd285460fc0fe68258
tree86f14a0bc7a3fa09eba02fd9dedc321eeef7cb14
parentff11a09b0261b2f29665a7a6affcf607ea4f00f4
[USETUP]
Fix a really mean bug: wcslen() returns the size in characters whereas MaximumLength has to be in bytes.
Now, this sets MaximumLength to its appropriate size and prevents some memory issues (and buffers having odd size, which is weird for an unicode string...).

svn path=/trunk/; revision=50615
reactos/base/setup/usetup/cabinet.c