22 Mar
2007
22 Mar
'07
7:20 a.m.
Dmitry Timoshkov wrote:
- strcpy(((char*)lpDrop)+lpDrop->pFiles, path); + memcpy(((char*)lpDrop)+lpDrop->pFiles, (char*)wpath, fullpathlen * sizeof(WCHAR));
Use lstrcpyW here instead of memcpy.
Why? Maciej has already got the length, so why not do the appropriate calculation on fullpathlen and use memcpy? -- Rob Shearman