Re: 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)
"David Quintana (gigaherz)" <gigaherz(a)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(a)winehq.org
participants (1)
-
Alexandre Julliard