vbox的更動 42049 路徑 trunk/src/bldprogs
- 時間撮記:
- 2012-7-9 下午12:35:40 (12 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/bldprogs/VBoxCmp.cpp
r42048 r42049 73 73 for (;;) 74 74 { 75 uint8_t b1, b2; 76 if ( fread(&b1, sizeof(b1), 1, pFile1) != 1 77 || fread(&b2, sizeof(b2), 1, pFile2) != 1) 75 uint8_t b1; 76 size_t cb1 = fread(&b1, sizeof(b1), 1, pFile1); 77 uint8_t b2; 78 size_t cb2 = fread(&b2, sizeof(b2), 1, pFile2); 79 if (cb1 != 1 || cb2 != 1) 78 80 break; 79 81 if (b1 != b2) … … 94 96 { 95 97 if (!feof(pFile1) && ferror(pFile1)) 96 printErr("Read error on file #1.\n");98 rcRet = printErr("Read error on file #1.\n"); 97 99 else if (!feof(pFile2) && ferror(pFile2)) 98 printErr("Read error on file #2.\n");99 else if (!feof(pFile 1))100 printErr("0x%x%08x: file #1 ends before file #2\n", (uint32_t)(off >> 32), (uint32_t)off);100 rcRet = printErr("Read error on file #2.\n"); 101 else if (!feof(pFile2)) 102 rcRet = printErr("0x%x%08x: file #1 ends before file #2\n", (uint32_t)(off >> 32), (uint32_t)off); 101 103 else 102 printErr("0x%x%08x: file #2 ends before file #1\n", (uint32_t)(off >> 32), (uint32_t)off);104 rcRet = printErr("0x%x%08x: file #2 ends before file #1\n", (uint32_t)(off >> 32), (uint32_t)off); 103 105 } 104 106
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器