Changeset 77971 in vbox for trunk/src/VBox/Runtime/common/ldr/ldrVfsFile.cpp
- Timestamp:
- Apr 1, 2019 9:35:17 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/ldr/ldrVfsFile.cpp
r76553 r77971 84 84 85 85 /** @copydoc RTLDRREADER::pfnSize */ 86 static DECLCALLBACK( RTFOFF) rtldrVfsFileSize(PRTLDRREADER pReader)86 static DECLCALLBACK(uint64_t) rtldrVfsFileSize(PRTLDRREADER pReader) 87 87 { 88 88 PRTLDRREADERVFSFILE pFileReader = (PRTLDRREADERVFSFILE)pReader; … … 121 121 * Allocate memory. 122 122 */ 123 RTFOFFcbFile = rtldrVfsFileSize(pReader);123 uint64_t cbFile = rtldrVfsFileSize(pReader); 124 124 size_t cb = (size_t)cbFile; 125 if (( RTFOFF)cb != cbFile)125 if ((uint64_t)cb != cbFile) 126 126 return VERR_IMAGE_TOO_BIG; 127 127 pFileReader->pvMapping = RTMemAlloc(cb);
Note:
See TracChangeset
for help on using the changeset viewer.