- Timestamp:
- Aug 23, 2010 3:22:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/solaris/coredumper-solaris.cpp
r31862 r31869 78 78 79 79 80 /** 81 * Wrapper function to write IPRT format style string to the syslog. 82 * 83 * @param pszFormat Format string 80 /** 81 * Wrapper function to write IPRT format style string to the syslog. 82 * 83 * @param pszFormat Format string 84 84 */ 85 85 static void rtCoreDumperSysLogWrapper(const char *pszFormat, ...) … … 199 199 static size_t GetFileSize(const char *pszPath) 200 200 { 201 size_t cb = 0;201 uint64_t cb = 0; 202 202 RTFILE hFile; 203 203 int rc = RTFileOpen(&hFile, pszPath, RTFILE_O_OPEN | RTFILE_O_READ); 204 204 if (RT_SUCCESS(rc)) 205 205 { 206 RTFileGetSize(hFile, (uint64_t *)&cb);206 RTFileGetSize(hFile, &cb); 207 207 RTFileClose(hFile); 208 208 } 209 209 else 210 210 CORELOGRELSYS((CORELOG_NAME "GetFileSize failed to open %s rc=%Rrc\n", pszPath, rc)); 211 return cb ;211 return cb < ~(size_t)0 ? (size_t)cb : ~(size_t)0; 212 212 } 213 213 … … 351 351 if (RT_SUCCESS(rc)) 352 352 { 353 RTFileGetSize(hFile, (uint64_t *)pcb); 353 RTFileGetSize(hFile, (uint64_t *)pcb); /** @todo size_t != uint64_t! */ 354 354 if (*pcb > 0) 355 355 { … … 515 515 516 516 size_t cbAuxFile = 0; 517 RTFileGetSize(hFile, (uint64_t *)&cbAuxFile); 517 RTFileGetSize(hFile, (uint64_t *)&cbAuxFile); /** @todo size_t != uint64_t! */ 518 518 if (cbAuxFile >= sizeof(auxv_t)) 519 519 { … … 607 607 */ 608 608 size_t cbMapFile = 0; 609 RTFileGetSize(hFile, (uint64_t *)&cbMapFile); 609 RTFileGetSize(hFile, (uint64_t *)&cbMapFile); /** @todo size_t != uint64_t! */ 610 610 if (cbMapFile >= sizeof(prmap_t)) 611 611 {
Note:
See TracChangeset
for help on using the changeset viewer.