From a445eb43568ec5fc1bf2fcb3199aa045696ccc6c Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Tue, 12 Aug 2014 09:00:13 +0200 Subject: warning C4189: local variable is initialized but not referenced Change-Id: I83493466051649c9786cead0486e3112bf1eb5a4 --- shell/qa/zip/ziptest.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shell/qa/zip/ziptest.cxx') 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() -- cgit