diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-08-12 09:00:13 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-08-13 10:10:44 +0200 |
commit | a445eb43568ec5fc1bf2fcb3199aa045696ccc6c (patch) | |
tree | 0492244760bf3d7a7b42a4a967467f92610b5b3e /shell/qa/zip/ziptest.cxx | |
parent | c7b0ec89248fc2f781b1e77b92a580619bb23467 (diff) |
warning C4189: local variable is initialized but not referenced
Change-Id: I83493466051649c9786cead0486e3112bf1eb5a4
Diffstat (limited to 'shell/qa/zip/ziptest.cxx')
-rw-r--r-- | shell/qa/zip/ziptest.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/qa/zip/ziptest.cxx b/shell/qa/zip/ziptest.cxx index 3335aea52d62..df501a6c107d 100644 --- a/shell/qa/zip/ziptest.cxx +++ b/shell/qa/zip/ziptest.cxx @@ -82,10 +82,12 @@ Test::Test() : documentName(), pStream(NULL) LPVOID pvData = GlobalLock(hGlobal); DWORD dwBytesRead = 0; BOOL bRead = ReadFile(hFile, pvData, dwFileSize, &dwBytesRead, NULL); + CPPUNIT_ASSERT_MESSAGE("FileStream: ReadFile error.", bRead); GlobalUnlock(hGlobal); CloseHandle(hFile); HRESULT hr = CreateStreamOnHGlobal(hGlobal, TRUE, &pStream); + CPPUNIT_ASSERT_MESSAGE("FileStream: CreateStreamOnHGlobal failure.", hr == S_OK); } void Test::test_file_directory() |