shlwapi: Test and fix the behaviour of the CopyTo method for file sizes not multiple of the internal buffer size, on SHCreateStreamOnFileEx-returned IStreams. (try 4)
Alexandre Julliard
julliard at winehq.org
Wed Oct 30 10:27:23 CDT 2013
"David Quintana (gigaherz)" <gigaherz at gmail.com> writes:
> +{
> + HRESULT ret;
> + IStream* src;
> + IStream* dst;
> + ULARGE_INTEGER count, read, written;
> +
> + CHAR srcPathA[MAX_PATH];
> + CHAR dstPathA[MAX_PATH];
> +
> + WCHAR srcPath[MAX_PATH];
> + WCHAR dstPath[MAX_PATH];
> +
> + const CHAR *srcFileName = "SHCreateStreamOnFileEx-src.dat";
> + const CHAR *dstFileName = "SHCreateStreamOnFileEx-dst.dat";
> +
> + GetTempPathA(MAX_PATH, srcPathA);
> + lstrcatA(srcPathA, srcFileName);
> + MultiByteToWideChar(CP_ACP, 0, srcPathA, -1, srcPath, MAX_PATH);
> +
> + GetTempPathA(MAX_PATH, dstPathA);
> + lstrcatA(dstPathA, dstFileName);
> + MultiByteToWideChar(CP_ACP, 0, dstPathA, -1, dstPath, MAX_PATH);
There's no reason to use such specific file names, just use
GetTempFileName or something like that.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list