From 3b08a77ca0ff428c84b6d773c61d0f81259e51bb Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 7 Mar 2016 15:02:43 -0500 Subject: Remove _FX_WINAPI_PARTITION_APP_ This does not appear to ever be defined, removed. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1773753002 . --- xfa/src/fgas/src/crt/fx_stream.cpp | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) (limited to 'xfa/src/fgas') diff --git a/xfa/src/fgas/src/crt/fx_stream.cpp b/xfa/src/fgas/src/crt/fx_stream.cpp index e5bf3ef8ba..bb9097ccd7 100644 --- a/xfa/src/fgas/src/crt/fx_stream.cpp +++ b/xfa/src/fgas/src/crt/fx_stream.cpp @@ -101,35 +101,20 @@ FX_BOOL CFX_FileStreamImp::LoadFile(const FX_WCHAR* pszSrcFileName, } else { wsMode = L"rb"; } -#ifdef _FX_WINAPI_PARTITION_APP_ - CFX_WideString wsSrcFileName(pszSrcFileName); - _wfopen_s(&m_hFile, wsSrcFileName, wsMode); -#else m_hFile = FXSYS_wfopen(pszSrcFileName, wsMode); -#endif - if (m_hFile == NULL) { + + if (!m_hFile) { if (dwAccess & FX_STREAMACCESS_Write) { - if (dwAccess & FX_STREAMACCESS_Create) { -#ifdef _FX_WINAPI_PARTITION_APP_ - CFX_WideString wsSrcFileName(pszSrcFileName); - _wfopen_s(&m_hFile, wsSrcFileName, L"w+b"); -#else + if (dwAccess & FX_STREAMACCESS_Create) m_hFile = FXSYS_wfopen(pszSrcFileName, L"w+b"); -#endif - } - if (m_hFile == NULL) { -#ifdef _FX_WINAPI_PARTITION_APP_ - CFX_WideString wsSrcFileName(pszSrcFileName); - _wfopen_s(&m_hFile, wsSrcFileName, L"r+b"); -#else + + if (!m_hFile) { m_hFile = FXSYS_wfopen(pszSrcFileName, L"r+b"); -#endif - if (m_hFile == NULL) { + if (!m_hFile) return FALSE; - } - if (dwAccess & FX_STREAMACCESS_Truncate) { + + if (dwAccess & FX_STREAMACCESS_Truncate) FX_fsetsize(m_hFile, 0); - } } } else { return FALSE; -- cgit v1.2.3