Changeset 14062 in vbox for trunk/src/VBox/Runtime/r3/posix
- Timestamp:
- Nov 10, 2008 11:23:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/dir-posix.cpp
r9355 r14062 274 274 275 275 276 RTDECL(int) RTDirRead(PRTDIR pDir, PRTDIRENTRY pDirEntry, unsigned*pcbDirEntry)276 RTDECL(int) RTDirRead(PRTDIR pDir, PRTDIRENTRY pDirEntry, size_t *pcbDirEntry) 277 277 { 278 278 /* … … 283 283 AssertMsgReturn(VALID_PTR(pDirEntry), ("%p\n", pDirEntry), VERR_INVALID_POINTER); 284 284 285 unsignedcbDirEntry = sizeof(*pDirEntry);285 size_t cbDirEntry = sizeof(*pDirEntry); 286 286 if (pcbDirEntry) 287 287 { 288 288 AssertMsgReturn(VALID_PTR(pcbDirEntry), ("%p\n", pcbDirEntry), VERR_INVALID_POINTER); 289 289 cbDirEntry = *pcbDirEntry; 290 AssertMsgReturn(cbDirEntry >= (unsigned)RT_OFFSETOF(RTDIRENTRY, szName[2]),290 AssertMsgReturn(cbDirEntry >= RT_UOFFSETOF(RTDIRENTRY, szName[2]), 291 291 ("Invalid *pcbDirEntry=%d (min %d)\n", *pcbDirEntry, RT_OFFSETOF(RTDIRENTRYEX, szName[2])), 292 292 VERR_INVALID_PARAMETER); … … 378 378 379 379 380 RTDECL(int) RTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, unsigned*pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs)380 RTDECL(int) RTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs) 381 381 { 382 382 /* … … 390 390 ("Invalid enmAdditionalAttribs=%p\n", enmAdditionalAttribs), 391 391 VERR_INVALID_PARAMETER); 392 unsignedcbDirEntry = sizeof(*pDirEntry);392 size_t cbDirEntry = sizeof(*pDirEntry); 393 393 if (pcbDirEntry) 394 394 {
Note:
See TracChangeset
for help on using the changeset viewer.