diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-04-27 13:12:53 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-04-27 13:12:53 -0700 |
commit | 99ee3d3527bc00f83f01e1db007d190a6b3458f5 (patch) | |
tree | 87060761e69afb7521bdc8b05aba405ce730bab1 /core/src/fxcrt | |
parent | e6f11a7b95e26affba59a7057776a787056af8df (diff) | |
download | pdfium-99ee3d3527bc00f83f01e1db007d190a6b3458f5.tar.xz |
Fix windows-specific usage of CFX_WideStr::operator LPCWSTR().
Carry-on from https://codereview.chromium.org/1108903002/
R=brucedawson@chromium.org
Review URL: https://codereview.chromium.org/1103343002
Diffstat (limited to 'core/src/fxcrt')
-rw-r--r-- | core/src/fxcrt/fx_basic_util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/fxcrt/fx_basic_util.cpp b/core/src/fxcrt/fx_basic_util.cpp index 98839b44c0..fd411919f1 100644 --- a/core/src/fxcrt/fx_basic_util.cpp +++ b/core/src/fxcrt/fx_basic_util.cpp @@ -344,9 +344,9 @@ void* FX_OpenFolder(FX_LPCWSTR path) #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ CFindFileDataW* pData = new CFindFileDataW; #ifdef _FX_WINAPI_PARTITION_DESKTOP_ - pData->m_Handle = FindFirstFileW(CFX_WideString(path) + L"/*.*", &pData->m_FindData); + pData->m_Handle = FindFirstFileW((CFX_WideString(path) + L"/*.*").c_str(), &pData->m_FindData); #else - pData->m_Handle = FindFirstFileExW(CFX_WideString(path) + L"/*.*", FindExInfoStandard, &pData->m_FindData, FindExSearchNameMatch, NULL, 0); + pData->m_Handle = FindFirstFileExW((CFX_WideString(path) + L"/*.*").c_str(), FindExInfoStandard, &pData->m_FindData, FindExSearchNameMatch, NULL, 0); #endif if (pData->m_Handle == INVALID_HANDLE_VALUE) { delete pData; |