Changeset 77447 in vbox for trunk/src/VBox/ValidationKit/utils/fs/FsPerf.cpp
- Timestamp:
- Feb 24, 2019 4:20:52 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/fs/FsPerf.cpp
r77446 r77447 2496 2496 /* Memory map it read-write (no COW). */ 2497 2497 #ifdef RT_OS_WINDOWS 2498 pbMapping = NULL;2498 uint8_t *pbMapping = NULL; 2499 2499 HANDLE hSection = CreateFileMapping((HANDLE)RTFileToNative(hFile2), NULL, PAGE_READWRITE, 0, sizeof(s_abContent), NULL); 2500 2500 RTTESTI_CHECK_MSG(hSection != NULL, ("last error %u\n", GetLastError)); … … 2535 2535 { 2536 2536 *puCur = ~*puCur; 2537 puCur ;2537 puCur++; 2538 2538 } 2539 2539 2540 2540 /* Sync it all. */ 2541 2541 # ifdef RT_OS_WINDOWS 2542 RTTESTI_CHECK(FlushViewOfFile(pbMapping, sizeof(s_abContent)) ;2542 RTTESTI_CHECK(FlushViewOfFile(pbMapping, sizeof(s_abContent))); 2543 2543 # else 2544 2544 RTTESTI_CHECK(msync(pbMapping, sizeof(s_abContent), MS_SYNC) == 0);
Note:
See TracChangeset
for help on using the changeset viewer.