Changeset 23071 in vbox
- Timestamp:
- Sep 16, 2009 3:31:51 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 52407
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ImageMounter/VBoxFUSE/VBoxFUSE.cpp
r23052 r23071 38 38 # ifdef EBADMACHO 39 39 # define EDOOFUS EBADMACHO 40 # elif defined(RT_OS_LINUX) 41 # define EDOOFUS 0x0fad8484d 40 42 //# elif defined(EXYZ) 41 43 //# define EDOOFUS EXYZ 42 44 # else 43 # define EDOOFUS 0xfad8484d45 # error "Choose an unlikely and (if possible) fun error number for EDOOFUS." 44 46 # endif 45 47 #endif … … 1161 1163 AssertReturn((unsigned)cbBuf == cbBuf, -EINVAL); 1162 1164 AssertReturn(offFile >= 0, -EINVAL); 1163 AssertReturn( offFile + (ssize_t)cbBuf>= offFile, -EINVAL);1165 AssertReturn((off_t)(offFile + cbBuf) >= offFile, -EINVAL); 1164 1166 1165 1167 PVBOXFUSENODE pNode = (PVBOXFUSENODE)(uintptr_t)pInfo->fh; … … 1177 1179 1178 1180 int rc; 1179 if ( offFile + (ssize_t)cbBuf< offFile)1181 if ((off_t)(offFile + cbBuf) < offFile) 1180 1182 rc = -EINVAL; 1181 1183 else if (offFile >= pFlatImage->Node.cbPrimary) … … 1186 1188 { 1187 1189 /* Adjust for EOF. */ 1188 if ( offFile + (ssize_t)cbBuf>= pFlatImage->Node.cbPrimary)1190 if ((off_t)(offFile + cbBuf) >= pFlatImage->Node.cbPrimary) 1189 1191 cbBuf = pFlatImage->Node.cbPrimary - offFile; 1190 1192
Note:
See TracChangeset
for help on using the changeset viewer.