Commit 031f2ab6 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

shlwapi/tests: Add missing return value checks to istream tests (Coverity).

parent 7b2ead8d
......@@ -663,8 +663,10 @@ static void test_SHCreateStreamOnFileEx_CopyTo(void)
static const WCHAR prefix[] = { 'T', 'S', 'T', 0 };
GetTempPathW(MAX_PATH, tmpPath);
GetTempFileNameW(tmpPath, prefix, 0, srcFileName);
GetTempFileNameW(tmpPath, prefix, 0, dstFileName);
ret = GetTempFileNameW(tmpPath, prefix, 0, srcFileName);
ok(ret != 0, "GetTempFileName failed, got error %d\n", GetLastError());
ret = GetTempFileNameW(tmpPath, prefix, 0, dstFileName);
ok(ret != 0, "GetTempFileName failed, got error %d\n", GetLastError());
ret = SHCreateStreamOnFileEx(srcFileName, STGM_CREATE | STGM_READWRITE | STGM_DELETEONRELEASE, FILE_ATTRIBUTE_TEMPORARY, FALSE, NULL, &src);
ok(SUCCEEDED(ret), "SHCreateStreamOnFileEx failed with ret=0x%08x\n", ret);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment