summaryrefslogtreecommitdiff
path: root/core/src/fxge
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-07-30 15:53:59 -0700
committerTom Sepez <tsepez@chromium.org>2015-07-30 15:53:59 -0700
commit6fc1bf199833d6cb409e8134fe5d6894e8323673 (patch)
tree36de551c78dcf5a4466dff63f61fadeb55510a45 /core/src/fxge
parent62ec8ad11b56f0df80f8133ad30f37cade9f0592 (diff)
downloadpdfium-6fc1bf199833d6cb409e8134fe5d6894e8323673.tar.xz
Fix return check in CFX_FolderFontInfo::ScanFile() fread.
If you want to check the number of bytes read, you need to change the order of arguments. TEST=testing/corpus/fx/mulobj/1/1_10_watermark.pdf.0.png R=thestig@chromium.org Review URL: https://codereview.chromium.org/1262453006 .
Diffstat (limited to 'core/src/fxge')
-rw-r--r--core/src/fxge/ge/fx_ge_fontmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fxge/ge/fx_ge_fontmap.cpp b/core/src/fxge/ge/fx_ge_fontmap.cpp
index 14427a5e40..9bbebd9917 100644
--- a/core/src/fxge/ge/fx_ge_fontmap.cpp
+++ b/core/src/fxge/ge/fx_ge_fontmap.cpp
@@ -1367,7 +1367,7 @@ void CFX_FolderFontInfo::ScanFile(CFX_ByteString& path)
}
FX_DWORD face_bytes = nFaces * 4;
uint8_t* offsets = FX_Alloc(uint8_t, face_bytes);
- readCnt = FXSYS_fread(offsets, face_bytes, 1, pFile);
+ readCnt = FXSYS_fread(offsets, 1, face_bytes, pFile);
if (readCnt != face_bytes) {
FX_Free(offsets);
FXSYS_fclose(pFile);