"David Quintana (gigaherz)" gigaherz@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.