diff options
Diffstat (limited to 'shell/qa/zip/ziptest.cxx')
-rw-r--r-- | shell/qa/zip/ziptest.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/qa/zip/ziptest.cxx b/shell/qa/zip/ziptest.cxx index 2bcfef30c84e..f554e6da71d0 100644 --- a/shell/qa/zip/ziptest.cxx +++ b/shell/qa/zip/ziptest.cxx @@ -42,7 +42,7 @@ using namespace std; class Test : public CppUnit::TestFixture { private: - string documentName; + wstring documentName; LPSTREAM pStream; public: Test(); @@ -66,16 +66,16 @@ CPPUNIT_TEST_SUITE_REGISTRATION(Test); Test::Test() : documentName(), pStream(nullptr) { - const char* pSrcRoot = getenv( "SRC_ROOT" ); + const wchar_t* pSrcRoot = _wgetenv(L"SRC_ROOT"); if (pSrcRoot) { documentName.append(pSrcRoot); - documentName.append("/"); + documentName.append(L"/"); } - documentName.append("shell/qa/zip/simpledocument.odt"); + documentName.append(L"shell/qa/zip/simpledocument.odt"); // Create an IStream pointer from the file - HANDLE hFile = CreateFileA(documentName.c_str(), GENERIC_READ, 0, nullptr, OPEN_EXISTING, 0, nullptr); + HANDLE hFile = CreateFileW(documentName.c_str(), GENERIC_READ, 0, nullptr, OPEN_EXISTING, 0, nullptr); DWORD dwFileSize = GetFileSize(hFile, nullptr); HGLOBAL hGlobal = GlobalAlloc(GMEM_MOVEABLE, dwFileSize); |