Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1643)

Side by Side Diff: core/src/fxcrt/fxcrt_windows.cpp

Issue 1707923002: Expand all paths to be based off pdfium/ directory (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Sort headers Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "fxcrt_windows.h" 7 #include "core/src/fxcrt/fxcrt_windows.h"
8 8
9 #include "core/include/fxcrt/fx_string.h" 9 #include "core/include/fxcrt/fx_string.h"
10 10
11 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 11 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
12 IFXCRT_FileAccess* FXCRT_FileAccess_Create() { 12 IFXCRT_FileAccess* FXCRT_FileAccess_Create() {
13 return new CFXCRT_FileAccess_Win64; 13 return new CFXCRT_FileAccess_Win64;
14 } 14 }
15 void FXCRT_Windows_GetFileMode(FX_DWORD dwMode, 15 void FXCRT_Windows_GetFileMode(FX_DWORD dwMode,
16 FX_DWORD& dwAccess, 16 FX_DWORD& dwAccess,
17 FX_DWORD& dwShare, 17 FX_DWORD& dwShare,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 163 }
164 return ::FlushFileBuffers(m_hFile); 164 return ::FlushFileBuffers(m_hFile);
165 } 165 }
166 FX_BOOL CFXCRT_FileAccess_Win64::Truncate(FX_FILESIZE szFile) { 166 FX_BOOL CFXCRT_FileAccess_Win64::Truncate(FX_FILESIZE szFile) {
167 if (SetPosition(szFile) == (FX_FILESIZE)-1) { 167 if (SetPosition(szFile) == (FX_FILESIZE)-1) {
168 return FALSE; 168 return FALSE;
169 } 169 }
170 return ::SetEndOfFile(m_hFile); 170 return ::SetEndOfFile(m_hFile);
171 } 171 }
172 #endif 172 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698