Gerald Pfeifer gerald@pfeifer.com writes:
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.