22 May
2016
22 May
'16
7:53 p.m.
On Wed, 18 May 2016, Alexandre Julliard wrote:
wszDstPath is an array of WCHAR, which are wider than one byte, so this should have been (MAXPATH+1)*sizeof(WCHAR) -- or the more robust approach I here propose. Actually there's no reason to initialize the entire buffer.
And MAXPATH+1 is correct? Or is that arbitrary as well? Initialized an array of WCHAR to the size the array would have were it an array of char feels quite unintuitive, so at least a comment would be good. Gerald