summaryrefslogtreecommitdiff
path: root/xfa/src/fgas
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2016-03-07 15:02:43 -0500
committerDan Sinclair <dsinclair@chromium.org>2016-03-07 15:02:43 -0500
commit3b08a77ca0ff428c84b6d773c61d0f81259e51bb (patch)
tree4b58932f638e3e87266271579bb0379f7afd78ab /xfa/src/fgas
parent09ca162bb06543d914758db7e6387c250cef8a1b (diff)
downloadpdfium-3b08a77ca0ff428c84b6d773c61d0f81259e51bb.tar.xz
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 .
Diffstat (limited to 'xfa/src/fgas')
-rw-r--r--xfa/src/fgas/src/crt/fx_stream.cpp31
1 files changed, 8 insertions, 23 deletions
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;